mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
78bc3bdd2a
commit
ea85f0fe13
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue