Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MdeModulePkg BmDriverHealth.c: Support dump the driver name #10666

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YangGangUEFI
Copy link
Contributor

Sometimes the controller name is not present, add BmGetDriverName to retrieve the driver name.(Like DriverHealthManagerDxe)

Description

  • Breaking change?
    • N/A
  • Impacts security?
    • N/A
  • Includes tests?
    • N/A

How This Was Tested

Check the boot log with OVMF(IA32X64) and NIC(E1000 Driver).

Before:

00: <null string> - Healthy

After:

00: Intel(R) PRO/1000 9.8.62 PCI-E - Healthy

Integration Instructions

N/A

Sometimes the controller name is not present, add BmGetDriverName
to retrieve the driver name.(Like DriverHealthManagerDxe)

Signed-off-by: Yang Gang <[email protected]>
DriverHealthInfo[Index].ChildHandle
);
ZeroMem (String, sizeof (String));
DriverName = BmGetDriverName (DriverHealthInfo[Index].DriverHealthHandle);

Check failure

Code scanning / CodeQL

Returned pointer not checked High

Value may be null; it should be checked before dereferencing.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code will be updated later.

@YangGangUEFI YangGangUEFI marked this pull request as draft January 24, 2025 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant