diff --git a/PayloadPkg/HelloWorld/HelloWorld.c b/PayloadPkg/HelloWorld/HelloWorld.c index 9b3dbf93..6dd97ab2 100644 --- a/PayloadPkg/HelloWorld/HelloWorld.c +++ b/PayloadPkg/HelloWorld/HelloWorld.c @@ -22,8 +22,6 @@ PayloadMain ( ) { UINT8 Key; - CHAR8 Message[64]; - UINTN Len; DEBUG ((DEBUG_INFO, "\n\n==================== Hello World ====================\n\n")); @@ -32,8 +30,7 @@ PayloadMain ( if (ConsolePoll ()) { if (ConsoleRead (&Key, 1) > 0) { if ((Key >= 0x20) && (Key < 0x7F)) { - Len = AsciiSPrint (Message, sizeof (Message), "Key '%c' pressed !\n", Key); - ConsoleWrite (Message, Len); + ConsolePrint("Key '%c' pressed !\n", Key); } } }