git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5843
6f19259b-4bc3-4df7-8a09-
765794883524
)\r
{\r
CHAR16 Buffer[MAX_DEBUG_MESSAGE_LENGTH];\r
)\r
{\r
CHAR16 Buffer[MAX_DEBUG_MESSAGE_LENGTH];\r
- CHAR8 AsciiBuffer[MAX_DEBUG_MESSAGE_LENGTH];\r
VA_LIST Marker;\r
\r
//\r
VA_LIST Marker;\r
\r
//\r
// Convert the DEBUG() message to a Unicode String\r
//\r
VA_START (Marker, Format);\r
// Convert the DEBUG() message to a Unicode String\r
//\r
VA_START (Marker, Format);\r
- AsciiVSPrint (AsciiBuffer, sizeof (AsciiBuffer), Format, Marker);\r
- AsciiStrToUnicodeStr (AsciiBuffer, Buffer);\r
+ UnicodeVSPrintAsciiFormat (Buffer, MAX_DEBUG_MESSAGE_LENGTH, Format, Marker);\r
)\r
{\r
CHAR16 Buffer[MAX_DEBUG_MESSAGE_LENGTH];\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
\r
//\r
// Generate the ASSERT() message in Unicode format\r
//\r
- AsciiSPrint (AsciiBuffer, sizeof (AsciiBuffer), "ASSERT %a(%d): %a\n", FileName, LineNumber, Description);\r
- AsciiStrToUnicodeStr (AsciiBuffer, Buffer);\r
-\r
+ UnicodeSPrintAsciiFormat (\r
+ Buffer, \r
+ MAX_DEBUG_MESSAGE_LENGTH, \r
+ "ASSERT %a(%d): %a\n", \r
+ FileName, \r
+ LineNumber, \r
+ Description\r
+ );\r
+ \r
//\r
// Send the print string to the Console Output device\r
//\r
//\r
// Send the print string to the Console Output device\r
//\r