MdeModulePkg: Change complex DEBUG_CODE() to DEBUG_CODE_BEGIN/END()
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3767 Update use of DEBUG_CODE(Expression) if Expression is a complex code block with if/while/for/case statements that use {}. Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael Kubacki <michael.kubacki@microsoft.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
committed by
mergify[bot]
parent
4a9d411662
commit
db52c7f755
@@ -941,7 +941,7 @@ BdsEntry (
|
||||
OsIndication = 0;
|
||||
}
|
||||
|
||||
DEBUG_CODE (
|
||||
DEBUG_CODE_BEGIN ();
|
||||
EFI_BOOT_MANAGER_LOAD_OPTION_TYPE LoadOptionType;
|
||||
DEBUG ((DEBUG_INFO, "[Bds]OsIndication: %016x\n", OsIndication));
|
||||
DEBUG ((DEBUG_INFO, "[Bds]=============Begin Load Options Dumping ...=============\n"));
|
||||
@@ -963,7 +963,7 @@ BdsEntry (
|
||||
EfiBootManagerFreeLoadOptions (LoadOptions, LoadOptionCount);
|
||||
}
|
||||
DEBUG ((DEBUG_INFO, "[Bds]=============End Load Options Dumping=============\n"));
|
||||
);
|
||||
DEBUG_CODE_END ();
|
||||
|
||||
//
|
||||
// BootManagerMenu doesn't contain the correct information when return status is EFI_NOT_FOUND.
|
||||
|
Reference in New Issue
Block a user