diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2021-12-05 14:33:53 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-07 17:24:28 +0000 |
commit | db52c7f755885d2f42279ba0d967c5d646d017b1 (patch) | |
tree | 07e0902972606385aba6c20cf36829fdd76a23db /MdeModulePkg/Universal/Console | |
parent | 4a9d41166224346621981ce98add027d56901b53 (diff) | |
download | edk2-db52c7f755885d2f42279ba0d967c5d646d017b1.zip edk2-db52c7f755885d2f42279ba0d967c5d646d017b1.tar.gz edk2-db52c7f755885d2f42279ba0d967c5d646d017b1.tar.bz2 |
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 <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: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'MdeModulePkg/Universal/Console')
-rw-r--r-- | MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c | 4 | ||||
-rw-r--r-- | MdeModulePkg/Universal/Console/TerminalDxe/Terminal.c | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c index 838c333..50c4d71 100644 --- a/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c +++ b/MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsole.c @@ -335,12 +335,12 @@ InitializeGraphicsConsoleTextMode ( }
}
- DEBUG_CODE (
+ DEBUG_CODE_BEGIN ();
for (Index = 0; Index < ValidCount; Index++) {
DEBUG ((DEBUG_INFO, "Graphics - Mode %d, Column = %d, Row = %d\n",
Index, NewModeBuffer[Index].Columns, NewModeBuffer[Index].Rows));
}
- );
+ DEBUG_CODE_END ();
//
// Return valid mode count and mode information buffer.
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;
}
-
|