]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Code Scrub for EdkDxePrintLib.
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 6 Nov 2008 14:14:22 +0000 (14:14 +0000)
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 6 Nov 2008 14:14:22 +0000 (14:14 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6417 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Library/EdkDxePrintLib/EdkDxePrintLib.inf
MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c

index 11c7337cf8ecb081fea6740ec8f805f581393ea7..ee6937abd2afcd3beb2675f07e5f931bdb779a74 100644 (file)
@@ -1,8 +1,8 @@
 #/** @file\r
-# DXE Print library\r
+# Instance of Print Library based on EFI_PRINT2_PROTOCOL.\r
 #\r
 # Print Library based on EFI_PRINT_PROTOCOL\r
-# Copyright (c) 2006 - 2007, Intel Corporation.\r
+# Copyright (c) 2006 - 2008, Intel Corporation.\r
 #\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
index 03633f6440cea93eaca361447328f64ea7f0ef5d..18ea2349d25fcffa074334277ac1068161f9a398 100644 (file)
@@ -1,4 +1,5 @@
 /** @file\r
+  Instance of Print Library based on EFI_PRINT2_PROTOCOL.\r
 \r
   Implement the print library instance by wrap the interface \r
   provided in the Print protocol. This protocol is defined as the internal\r
@@ -25,12 +26,20 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 EFI_PRINT2_PROTOCOL  *gPrintProtocol = NULL;\r
 \r
+/**\r
+  Internal function to locate the EFI_PRINT2_PROTOCOL.\r
+\r
+  @retval  EFI_SUCCESS   EFI_PRINT2_PROTOCOL is successfuly located.\r
+  @retval  EFI_NOT_FOUND EFI_PRINT2_PROTOCOL cannot be found.\r
+\r
+**/\r
 EFI_STATUS\r
 EFIAPI\r
 InternalLocatePrintProtocol (\r
+  VOID\r
   )\r
 {\r
-  EFI_STATUS  Status = EFI_SUCCESS;\r
+  EFI_STATUS  Status;\r
 \r
   if (gPrintProtocol == NULL) {\r
     Status = gBS->LocateProtocol (\r
@@ -124,7 +133,8 @@ UnicodeVSPrint (
                           Unicode string.\r
   @param  BufferSize      The size, in bytes, of the output buffer specified by StartOfBuffer.\r
   @param  FormatString    Null-terminated Unicode format string.\r
-  \r
+  @param  ...             Variable argument list based on the contents of the format string.\r
+\r
   @return The number of Unicode characters in the produced output buffer not including the\r
           Null-terminator.\r
 \r
@@ -220,6 +230,7 @@ UnicodeVSPrintAsciiFormat (
                           Unicode string.\r
   @param  BufferSize      The size, in bytes, of the output buffer specified by StartOfBuffer.\r
   @param  FormatString    Null-terminated Unicode format string.\r
+  @param  ...             Variable argument list based on the contents of the format string.\r
   \r
   @return The number of Unicode characters in the produced output buffer not including the\r
           Null-terminator.\r
@@ -371,7 +382,8 @@ AsciiVSPrint (
                           ASCII string.\r
   @param  BufferSize      The size, in bytes, of the output buffer specified by StartOfBuffer.\r
   @param  FormatString    Null-terminated Unicode format string.\r
-  \r
+  @param  ...             Variable argument list based on the contents of the format string.\r
+\r
   @return The number of ASCII characters in the produced output buffer not including the\r
           Null-terminator.\r
 \r
@@ -467,7 +479,8 @@ AsciiVSPrintUnicodeFormat (
                           ASCII string.\r
   @param  BufferSize      The size, in bytes, of the output buffer specified by StartOfBuffer.\r
   @param  FormatString    Null-terminated Unicode format string.\r
-  \r
+  @param  ...             Variable argument list based on the contents of the format string.\r
+\r
   @return The number of ASCII characters in the produced output buffer not including the\r
           Null-terminator.\r
 \r