]> git.proxmox.com Git - mirror_edk2.git/commitdiff
DynamicTablesPkg: Change complex DEBUG_CODE() to DEBUG_CODE_BEGIN/END()
authorMichael D Kinney <michael.d.kinney@intel.com>
Sun, 5 Dec 2021 22:33:43 +0000 (14:33 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 7 Dec 2021 17:24:28 +0000 (17:24 +0000)
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>
DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtCmn600LibArm/SsdtCmn600Generator.c

index b46ad25cdd26a41225a8d99f4b3130aa7efb1841..359cbcd428c5f27744d878bd940a395198f3b23e 100644 (file)
@@ -174,7 +174,7 @@ error_handler:
     Cmn600Info->DtcCount\r
     ));\r
 \r
-  DEBUG_CODE (\r
+    DEBUG_CODE_BEGIN ();\r
     for (DtcIndex = 0; DtcIndex < Cmn600Info->DtcCount; DtcIndex++) {\r
       DtcInterrupt = &Cmn600Info->DtcInterrupt[DtcIndex];\r
       DEBUG ((\r
@@ -193,7 +193,7 @@ error_handler:
         DtcInterrupt->Flags\r
         ));\r
     } // for\r
-  );\r
+    DEBUG_CODE_END ();\r
 \r
   return EFI_INVALID_PARAMETER;\r
 }\r