mirror of
https://gitlab.com/qemu-project/edk2.git
synced 2025-10-30 07:56:39 +08:00
StandaloneMmPkg: Always Print Driver Load Messages
Today, StandaloneMM Core's image loader only prints driver load messages if debug code is enabled. However, these are some of the most important prints in the codebase: on a given system even if you have nothing else to debug with, you can see the last driver executed. Debug code blocks are used to skip logic that only exists for debug purposes and wastes time on a release build. However, the logic to print a line and determine the filename from the PDB is not extensive and provides critical information, so it is inappropriate to wrap in a debug code section. Platforms can still choose to disable logging at DEBUG_INFO/DEBUG_LOAD and will not see the error messages. Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
This commit is contained in:
committed by
mergify[bot]
parent
1ec1f5d711
commit
bcd8509640
@ -143,6 +143,9 @@ MmLoadImage (
|
||||
UINTN PageCount;
|
||||
EFI_STATUS Status;
|
||||
EFI_PHYSICAL_ADDRESS DstBuffer;
|
||||
UINTN Index;
|
||||
UINTN StartIndex;
|
||||
CHAR8 EfiFileName[256];
|
||||
|
||||
DEBUG ((DEBUG_INFO, "MmLoadImage - %g\n", &DriverEntry->FileName));
|
||||
|
||||
@ -254,11 +257,6 @@ MmLoadImage (
|
||||
//
|
||||
// Print the load address and the PDB file name if it is available
|
||||
//
|
||||
DEBUG_CODE_BEGIN ();
|
||||
|
||||
UINTN Index;
|
||||
UINTN StartIndex;
|
||||
CHAR8 EfiFileName[256];
|
||||
|
||||
DEBUG ((
|
||||
DEBUG_INFO | DEBUG_LOAD,
|
||||
@ -308,8 +306,6 @@ MmLoadImage (
|
||||
|
||||
DEBUG ((DEBUG_INFO | DEBUG_LOAD, "\n"));
|
||||
|
||||
DEBUG_CODE_END ();
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user