X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=EdkModulePkg%2FApplication%2FHelloWorld%2FHelloWorld.c;h=0e8e752747493385eca967b1ce4efa224ca3f027;hp=cd6113fb771ed140df447000902df86be3cc7287;hb=22d9199fe5bc0cc9b868b3e33c90a215ce8da3fd;hpb=92dda53e9fe6568c9204ffd97f146710bdde3369 diff --git a/EdkModulePkg/Application/HelloWorld/HelloWorld.c b/EdkModulePkg/Application/HelloWorld/HelloWorld.c index cd6113fb77..0e8e752747 100644 --- a/EdkModulePkg/Application/HelloWorld/HelloWorld.c +++ b/EdkModulePkg/Application/HelloWorld/HelloWorld.c @@ -1,7 +1,7 @@ /** @file - This driver supports platform security service - - Copyright (c) 2006, Intel Corporation + This simple application just print a "UEFI Hello World!" to the UEFI Console. + + Copyright (c) 2006 - 2007, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -12,22 +12,6 @@ **/ -STATIC -VOID -Print ( - IN CONST CHAR16 *Format, - ... - ) -{ - CHAR16 PrintBuffer[0x100]; - VA_LIST Marker; - - VA_START (Marker, Format); - UnicodeVSPrint (PrintBuffer, sizeof (PrintBuffer), Format, Marker); - gST->ConOut->OutputString (gST->ConOut, PrintBuffer); - return; -} - EFI_STATUS EFIAPI UefiMain ( @@ -36,6 +20,9 @@ UefiMain ( ) { + CHAR16 Ptr16; + Print ((CHAR16 *)L"UEFI Hello World!\n"); + return EFI_SUCCESS; }