summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/PciHotPlugInitDxe
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2021-12-05 14:33:55 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-07 17:24:28 +0000
commit8e875037bf96c95b9f9c4adce8d453c7936309f0 (patch)
treef307707ca1bd3621b78bc58f13d6806be2a2210b /OvmfPkg/PciHotPlugInitDxe
parented7f7c916840f1e2afff0c5a6fb1161737ad1941 (diff)
downloadedk2-8e875037bf96c95b9f9c4adce8d453c7936309f0.tar.gz
edk2-8e875037bf96c95b9f9c4adce8d453c7936309f0.tar.bz2
edk2-8e875037bf96c95b9f9c4adce8d453c7936309f0.zip
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>
Diffstat (limited to 'OvmfPkg/PciHotPlugInitDxe')
-rw-r--r--OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.c b/OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.c
index 62e42d6771..387b1e80eb 100644
--- a/OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.c
+++ b/OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.c
@@ -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;