Added Print, ErrorPrint, AsciiPrint, AsciiErrorPrint() to the UEFI Library.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2392 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12
2007-02-14 06:35:30 +00:00
parent c0db4cdc64
commit 22d9199fe5
10 changed files with 2103 additions and 46 deletions

View File

@ -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;
}