]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Application/HelloWorld/HelloWorld.c
Added Print, ErrorPrint, AsciiPrint, AsciiErrorPrint() to the UEFI Library.
[mirror_edk2.git] / EdkModulePkg / Application / HelloWorld / HelloWorld.c
index 18705100bed4465aa8d2544c9f79c3243ecb3a7d..0e8e752747493385eca967b1ce4efa224ca3f027 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
-  This driver supports platform security service\r
-\r
-  Copyright (c) 2006, Intel Corporation                                                         \r
+  This simple application just print a "UEFI Hello World!" to the UEFI Console.\r
+  \r
+  Copyright (c) 2006 - 2007, Intel Corporation                                                         \r
   All rights reserved. This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
 \r
 **/\r
 \r
-STATIC\r
-VOID\r
-Print (\r
-  IN CONST CHAR16  *Format,\r
-  ...\r
-  )\r
-{\r
-  CHAR16  PrintBuffer[0x100];\r
-  VA_LIST Marker;\r
-\r
-  VA_START (Marker, Format);\r
-  UnicodeVSPrint (PrintBuffer, sizeof (PrintBuffer), Format, Marker);\r
-  gST->ConOut->OutputString (gST->ConOut, PrintBuffer);\r
-  return;\r
-}\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-UefiMain (\r
-  IN EFI_HANDLE        ImageHandle,\r
-  IN EFI_SYSTEM_TABLE  *SystemTable\r
-  );\r
-\r
 EFI_STATUS\r
 EFIAPI\r
 UefiMain (\r
@@ -43,6 +20,9 @@ UefiMain (
   )\r
 \r
 {\r
+  CHAR16  Ptr16;\r
+  \r
   Print ((CHAR16 *)L"UEFI Hello World!\n");\r
+\r
   return EFI_SUCCESS;\r
 }\r