From db52c7f755885d2f42279ba0d967c5d646d017b1 Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Sun, 5 Dec 2021 14:33:53 -0800 Subject: MdeModulePkg: 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: Liming Gao --- MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'MdeModulePkg/Universal/Console/TerminalDxe') diff --git a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c index a98b690..89d6e72 100644 --- a/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c +++ b/MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c @@ -327,13 +327,13 @@ InitializeTerminalConsoleTextMode ( } *TextModeCount = ARRAY_SIZE (mTerminalConsoleModeData); - DEBUG_CODE ( + DEBUG_CODE_BEGIN (); INT32 Index; for (Index = 0; Index < *TextModeCount; Index++) { DEBUG ((DEBUG_INFO, "Terminal - Mode %d, Column = %d, Row = %d\n", Index, TextModeData[Index].Columns, TextModeData[Index].Rows)); } - ); + DEBUG_CODE_END (); return TextModeData; } @@ -1380,4 +1380,3 @@ IsHotPlugDevice ( return FALSE; } - -- cgit v1.1