diff options
Diffstat (limited to 'MdePkg/Library/UefiDebugLibConOut/DebugLib.c')
-rw-r--r-- | MdePkg/Library/UefiDebugLibConOut/DebugLib.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/MdePkg/Library/UefiDebugLibConOut/DebugLib.c b/MdePkg/Library/UefiDebugLibConOut/DebugLib.c index 3cf31bd8a9..ff4de53729 100644 --- a/MdePkg/Library/UefiDebugLibConOut/DebugLib.c +++ b/MdePkg/Library/UefiDebugLibConOut/DebugLib.c @@ -53,6 +53,7 @@ DebugPrint ( )
{
CHAR16 Buffer[MAX_DEBUG_MESSAGE_LENGTH];
+ CHAR8 AsciiBuffer[MAX_DEBUG_MESSAGE_LENGTH];
VA_LIST Marker;
//
@@ -71,9 +72,11 @@ DebugPrint ( // Convert the DEBUG() message to a Unicode String
//
VA_START (Marker, Format);
- UnicodeVSPrintAsciiFormat (Buffer, sizeof (Buffer), Format, Marker);
+ AsciiVSPrint (AsciiBuffer, sizeof (AsciiBuffer), Format, Marker);
+ AsciiStrToUnicodeStr (AsciiBuffer, Buffer);
VA_END (Marker);
+
//
// Send the print string to the Console Output device
//
@@ -115,11 +118,13 @@ DebugAssert ( )
{
CHAR16 Buffer[MAX_DEBUG_MESSAGE_LENGTH];
+ CHAR8 AsciiBuffer[MAX_DEBUG_MESSAGE_LENGTH];
//
// Generate the ASSERT() message in Unicode format
//
- UnicodeSPrintAsciiFormat (Buffer, sizeof (Buffer), "ASSERT %s(%d): %s\n", FileName, LineNumber, Description);
+ AsciiSPrint (AsciiBuffer, sizeof (AsciiBuffer), "ASSERT %a(%d): %a\n", FileName, LineNumber, Description);
+ AsciiStrToUnicodeStr (AsciiBuffer, Buffer);
//
// Send the print string to the Console Output device
|