]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/UserInterface/SetupBrowser/Dxe/Print.c
1. Use MemoryAllocationLib to replace boot services memory services functions in...
[mirror_edk2.git] / EdkModulePkg / Universal / UserInterface / SetupBrowser / Dxe / Print.c
index a051b47827eb3e71d3659a14ceda08f44fbe7492..a751727f305c335e94d7c7ddd171b69d1a8a7602 100644 (file)
@@ -1,13 +1,13 @@
 /*++\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
@@ -16,9 +16,9 @@ Module Name:
 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
@@ -122,8 +122,8 @@ _IPrint (
   //\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
@@ -202,51 +202,6 @@ Returns:
   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
@@ -258,7 +213,7 @@ PrintAt (
 \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
@@ -289,7 +244,7 @@ PrintStringAt (
 \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
@@ -317,7 +272,7 @@ PrintCharAt (
 \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