From 4a9d41166224346621981ce98add027d56901b53 Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Sun, 5 Dec 2021 14:33:43 -0800 Subject: [PATCH] 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 Cc: Leif Lindholm Cc: Michael Kubacki Signed-off-by: Michael D Kinney Reviewed-by: Sami Mujawar --- .../Acpi/Arm/AcpiSsdtCmn600LibArm/SsdtCmn600Generator.c | 4 ++-- 1 file 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; }