)\r
{\r
CHAR16 Buffer[MAX_DEBUG_MESSAGE_LENGTH];\r
+ CHAR8 AsciiBuffer[MAX_DEBUG_MESSAGE_LENGTH];\r
VA_LIST Marker;\r
\r
//\r
// Convert the DEBUG() message to a Unicode String\r
//\r
VA_START (Marker, Format);\r
- UnicodeVSPrintAsciiFormat (Buffer, sizeof (Buffer), Format, Marker);\r
+ AsciiVSPrint (AsciiBuffer, sizeof (AsciiBuffer), Format, Marker);\r
+ AsciiStrToUnicodeStr (AsciiBuffer, Buffer);\r
VA_END (Marker);\r
\r
//\r
)\r
{\r
CHAR16 Buffer[MAX_DEBUG_MESSAGE_LENGTH];\r
+ CHAR8 AsciiBuffer[MAX_DEBUG_MESSAGE_LENGTH];\r
\r
//\r
// Generate the ASSERT() message in Unicode format\r
//\r
- UnicodeSPrintAsciiFormat (Buffer, sizeof (Buffer), "ASSERT %s(%d): %s\n", FileName, LineNumber, Description);\r
+ AsciiSPrint (AsciiBuffer, sizeof (AsciiBuffer), "ASSERT %a(%d): %a\n", FileName, LineNumber, Description);\r
+ AsciiStrToUnicodeStr (AsciiBuffer, Buffer);\r
\r
//\r
// Send the print string to the Standard Error device\r