/*++\r
\r
-Copyright (c) 2006, 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
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
+Copyright (c) 2006, 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
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
Module Name:\r
\r
Abstract:\r
\r
Basic Ascii AvSPrintf() function named VSPrint(). VSPrint() enables very\r
- simple implemenation of SPrint() and Print() to support debug. \r
+ simple implemenation of SPrint() and Print() to support debug.\r
\r
- You can not Print more than EFI_DRIVER_LIB_MAX_PRINT_BUFFER characters at a \r
+ You can not Print more than EFI_DRIVER_LIB_MAX_PRINT_BUFFER characters at a\r
time. This makes the implementation very simple.\r
\r
VSPrint, Print, SPrint format specification has the follwoing form\r
//\r
Out->OutputString (Out, &BackupBuffer[PreviousIndex]);\r
\r
- gBS->FreePool (Buffer);\r
- gBS->FreePool (BackupBuffer);\r
+ FreePool (Buffer);\r
+ FreePool (BackupBuffer);\r
return EFI_SUCCESS;\r
}\r
\r
return Print ((CHAR16 *) L"%c", Character);\r
}\r
\r
-/*\r
-UINTN\r
-PrintToken (\r
- IN EFI_HII_HANDLE Handle,\r
- IN UINT16 Token,\r
- IN CHAR16 *Language,\r
- ...\r
- )\r
-{\r
- VA_LIST args;\r
- UINTN NumberOfHiiHandles;\r
- EFI_HANDLE *HandleBuffer;\r
- EFI_HII_PROTOCOL *Hii;\r
-\r
- //\r
- // There should only be one HII image\r
- //\r
- Status = gBS->LocateHandleBuffer (\r
- ByProtocol, \r
- &gEfiHiiProtocolGuid, \r
- NULL,\r
- &NumberOfHiiHandles, \r
- &HandleBuffer\r
- );\r
-\r
- if (EFI_ERROR (Status)) {\r
- return Status;\r
- }\r
-\r
- //\r
- // Retrieve the Hii protocol interface\r
- //\r
- Status = gBS->HandleProtocol (\r
- HandleBuffer[0], \r
- &gEfiHiiProtocolGuid, \r
- &Hii\r
- );\r
-\r
- Hii->GetString (Hii, Handle, Token, FALSE, Language, \r
-\r
- VA_START (args, fmt);\r
- return _IPrint ((UINTN) -1, (UINTN) -1, gST->ConOut, fmt, args);\r
-}\r
-\r
-*/\r
UINTN\r
PrintAt (\r
IN UINTN Column,\r
\r
Routine Description:\r
\r
- Prints a formatted unicode string to the default console, at \r
+ Prints a formatted unicode string to the default console, at\r
the supplied cursor position\r
\r
Arguments:\r
\r
Routine Description:\r
\r
- Prints a unicode string to the default console, at \r
+ Prints a unicode string to the default console, at\r
the supplied cursor position, using L"%s" format.\r
\r
Arguments:\r
\r
Routine Description:\r
\r
- Prints a chracter to the default console, at \r
+ Prints a chracter to the default console, at\r
the supplied cursor position, using L"%c" format.\r
\r
Arguments:\r