summaryrefslogtreecommitdiffstats
path: root/ArmVirtPkg
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2021-12-05 14:33:41 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-07 17:24:28 +0000
commitea85f0fe1313a0090f4fa287bb75dbf3a00e0909 (patch)
treedf0810fe3f14baa75688f834d73d97ac030bba68 /ArmVirtPkg
parent78bc3bdd2ac5627e497b14e72e5c918173338a45 (diff)
downloadedk2-ea85f0fe1313a0090f4fa287bb75dbf3a00e0909.tar.gz
edk2-ea85f0fe1313a0090f4fa287bb75dbf3a00e0909.tar.bz2
edk2-ea85f0fe1313a0090f4fa287bb75dbf3a00e0909.zip
ArmVirtPkg: 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: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'ArmVirtPkg')
-rw-r--r--ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c
index bb3140f2d6..02d6c87050 100644
--- a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c
+++ b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c
@@ -605,7 +605,7 @@ RemoveStaleFvFileOptions (
//
Status = EfiBootManagerDeleteLoadOptionVariable (
BootOptions[Index].OptionNumber, LoadOptionTypeBoot);
- DEBUG_CODE (
+ DEBUG_CODE_BEGIN ();
CHAR16 *DevicePathString;
DevicePathString = ConvertDevicePathToText(BootOptions[Index].FilePath,
@@ -621,7 +621,7 @@ RemoveStaleFvFileOptions (
if (DevicePathString != NULL) {
FreePool (DevicePathString);
}
- );
+ DEBUG_CODE_END ();
}
EfiBootManagerFreeLoadOptions (BootOptions, BootOptionCount);