diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2021-12-05 14:33:43 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-07 17:24:28 +0000 |
commit | 4a9d41166224346621981ce98add027d56901b53 (patch) | |
tree | 8f5dcaf1a630c3533b2d473ea1aca1dd4cfa44d8 /DynamicTablesPkg/Library | |
parent | e3b855f2838e234aabcaf659dc32465da5e0b2f3 (diff) | |
download | edk2-4a9d41166224346621981ce98add027d56901b53.tar.gz edk2-4a9d41166224346621981ce98add027d56901b53.tar.bz2 edk2-4a9d41166224346621981ce98add027d56901b53.zip |
DynamicTablesPkg: 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 'DynamicTablesPkg/Library')
-rw-r--r-- | DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCmn600LibArm/SsdtCmn600Generator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCmn600LibArm/SsdtCmn600Generator.c b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCmn600LibArm/SsdtCmn600Generator.c index b46ad25cdd..359cbcd428 100644 --- a/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCmn600LibArm/SsdtCmn600Generator.c +++ b/DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCmn600LibArm/SsdtCmn600Generator.c @@ -174,7 +174,7 @@ error_handler: Cmn600Info->DtcCount
));
- DEBUG_CODE (
+ DEBUG_CODE_BEGIN ();
for (DtcIndex = 0; DtcIndex < Cmn600Info->DtcCount; DtcIndex++) {
DtcInterrupt = &Cmn600Info->DtcInterrupt[DtcIndex];
DEBUG ((
@@ -193,7 +193,7 @@ error_handler: DtcInterrupt->Flags
));
} // for
- );
+ DEBUG_CODE_END ();
return EFI_INVALID_PARAMETER;
}
|