OvmfPkg: 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: Andrew Fish <afish@apple.com>
This commit is contained in:
committed by
mergify[bot]
parent
ed7f7c9168
commit
8e875037bf
@@ -564,7 +564,7 @@ GetResourcePadding (
|
||||
|
||||
Address = (EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_PCI_ADDRESS *)&HpcPciAddress;
|
||||
|
||||
DEBUG_CODE (
|
||||
DEBUG_CODE_BEGIN ();
|
||||
CHAR16 *DevicePathString;
|
||||
|
||||
DevicePathString = ConvertDevicePathToText (HpcDevicePath, FALSE, FALSE);
|
||||
@@ -576,7 +576,7 @@ GetResourcePadding (
|
||||
if (DevicePathString != NULL) {
|
||||
FreePool (DevicePathString);
|
||||
}
|
||||
);
|
||||
DEBUG_CODE_END ();
|
||||
|
||||
if (HpcState == NULL || Padding == NULL || Attributes == NULL) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
|
Reference in New Issue
Block a user