Unify wide string types across console and debug functions
This commit is contained in:
@@ -95,7 +95,7 @@ BlEnableConsoleCursor()
|
||||
*/
|
||||
XTCDECL
|
||||
VOID
|
||||
BlConsolePrint(IN PUSHORT Format,
|
||||
BlConsolePrint(IN PCWSTR Format,
|
||||
IN ...)
|
||||
{
|
||||
RTL_PRINT_CONTEXT ConsolePrintContext, SerialPrintContext;
|
||||
@@ -138,9 +138,9 @@ BlConsolePrint(IN PUSHORT Format,
|
||||
*/
|
||||
XTCDECL
|
||||
VOID
|
||||
BlConsoleWrite(IN PUSHORT String)
|
||||
BlConsoleWrite(IN PCWSTR String)
|
||||
{
|
||||
EfiSystemTable->ConOut->OutputString(EfiSystemTable->ConOut, String);
|
||||
EfiSystemTable->ConOut->OutputString(EfiSystemTable->ConOut, (PWSTR)String);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -292,9 +292,9 @@ BlSetCursorPosition(IN ULONGLONG PosX,
|
||||
*/
|
||||
XTCDECL
|
||||
XTSTATUS
|
||||
BlpConsolePutChar(IN USHORT Character)
|
||||
BlpConsolePutChar(IN WCHAR Character)
|
||||
{
|
||||
USHORT Buffer[2];
|
||||
WCHAR Buffer[2];
|
||||
|
||||
/* Check if character is a newline ('\n') */
|
||||
if(Character == L'\n')
|
||||
|
@@ -24,7 +24,7 @@
|
||||
*/
|
||||
XTCDECL
|
||||
VOID
|
||||
BlDebugPrint(IN PUSHORT Format,
|
||||
BlDebugPrint(IN PCWSTR Format,
|
||||
IN ...)
|
||||
{
|
||||
RTL_PRINT_CONTEXT ConsolePrintContext, SerialPrintContext;
|
||||
@@ -71,9 +71,9 @@ BlDebugPrint(IN PUSHORT Format,
|
||||
*/
|
||||
XTCDECL
|
||||
XTSTATUS
|
||||
BlpDebugPutChar(IN USHORT Character)
|
||||
BlpDebugPutChar(IN WCHAR Character)
|
||||
{
|
||||
USHORT Buffer[2];
|
||||
WCHAR Buffer[2];
|
||||
|
||||
/* Write character to the serial console */
|
||||
Buffer[0] = Character;
|
||||
|
@@ -51,16 +51,16 @@ BlCloseVolume(IN PEFI_HANDLE VolumeHandle);
|
||||
|
||||
XTCDECL
|
||||
VOID
|
||||
BlConsolePrint(IN PUSHORT Format,
|
||||
BlConsolePrint(IN PCWSTR Format,
|
||||
IN ...);
|
||||
|
||||
XTCDECL
|
||||
VOID
|
||||
BlConsoleWrite(IN PUSHORT String);
|
||||
BlConsoleWrite(IN PCWSTR String);
|
||||
|
||||
XTCDECL
|
||||
VOID
|
||||
BlDebugPrint(IN PUSHORT Format,
|
||||
BlDebugPrint(IN PCWSTR Format,
|
||||
IN ...);
|
||||
|
||||
XTCDECL
|
||||
@@ -418,11 +418,11 @@ BlpActivateSerialIOController();
|
||||
|
||||
XTCDECL
|
||||
XTSTATUS
|
||||
BlpConsolePutChar(IN USHORT Character);
|
||||
BlpConsolePutChar(IN WCHAR Character);
|
||||
|
||||
XTCDECL
|
||||
XTSTATUS
|
||||
BlpDebugPutChar(IN USHORT Character);
|
||||
BlpDebugPutChar(IN WCHAR Character);
|
||||
|
||||
XTCDECL
|
||||
VOID
|
||||
|
Reference in New Issue
Block a user