summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-06 14:14:22 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-06 14:14:22 +0000
commitce95aa7a7b96ae4477b9938c2d9475cb57c43496 (patch)
treeff7107e064074113990aef8a560e1704513677c0
parentf5b2c45bf32edc54116e4e86b04ff275449ebc70 (diff)
downloadedk2-ce95aa7a7b96ae4477b9938c2d9475cb57c43496.zip
edk2-ce95aa7a7b96ae4477b9938c2d9475cb57c43496.tar.gz
edk2-ce95aa7a7b96ae4477b9938c2d9475cb57c43496.tar.bz2
Code Scrub for EdkDxePrintLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6417 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdeModulePkg/Library/EdkDxePrintLib/EdkDxePrintLib.inf4
-rw-r--r--MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c21
2 files changed, 19 insertions, 6 deletions
diff --git a/MdeModulePkg/Library/EdkDxePrintLib/EdkDxePrintLib.inf b/MdeModulePkg/Library/EdkDxePrintLib/EdkDxePrintLib.inf
index 11c7337..ee6937a 100644
--- a/MdeModulePkg/Library/EdkDxePrintLib/EdkDxePrintLib.inf
+++ b/MdeModulePkg/Library/EdkDxePrintLib/EdkDxePrintLib.inf
@@ -1,8 +1,8 @@
#/** @file
-# DXE Print library
+# Instance of Print Library based on EFI_PRINT2_PROTOCOL.
#
# Print Library based on EFI_PRINT_PROTOCOL
-# Copyright (c) 2006 - 2007, Intel Corporation.
+# Copyright (c) 2006 - 2008, 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
diff --git a/MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c b/MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c
index 03633f6..18ea234 100644
--- a/MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c
+++ b/MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c
@@ -1,4 +1,5 @@
/** @file
+ Instance of Print Library based on EFI_PRINT2_PROTOCOL.
Implement the print library instance by wrap the interface
provided in the Print protocol. This protocol is defined as the internal
@@ -25,12 +26,20 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
EFI_PRINT2_PROTOCOL *gPrintProtocol = NULL;
+/**
+ Internal function to locate the EFI_PRINT2_PROTOCOL.
+
+ @retval EFI_SUCCESS EFI_PRINT2_PROTOCOL is successfuly located.
+ @retval EFI_NOT_FOUND EFI_PRINT2_PROTOCOL cannot be found.
+
+**/
EFI_STATUS
EFIAPI
InternalLocatePrintProtocol (
+ VOID
)
{
- EFI_STATUS Status = EFI_SUCCESS;
+ EFI_STATUS Status;
if (gPrintProtocol == NULL) {
Status = gBS->LocateProtocol (
@@ -124,7 +133,8 @@ UnicodeVSPrint (
Unicode string.
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
@param FormatString Null-terminated Unicode format string.
-
+ @param ... Variable argument list based on the contents of the format string.
+
@return The number of Unicode characters in the produced output buffer not including the
Null-terminator.
@@ -220,6 +230,7 @@ UnicodeVSPrintAsciiFormat (
Unicode string.
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
@param FormatString Null-terminated Unicode format string.
+ @param ... Variable argument list based on the contents of the format string.
@return The number of Unicode characters in the produced output buffer not including the
Null-terminator.
@@ -371,7 +382,8 @@ AsciiVSPrint (
ASCII string.
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
@param FormatString Null-terminated Unicode format string.
-
+ @param ... Variable argument list based on the contents of the format string.
+
@return The number of ASCII characters in the produced output buffer not including the
Null-terminator.
@@ -467,7 +479,8 @@ AsciiVSPrintUnicodeFormat (
ASCII string.
@param BufferSize The size, in bytes, of the output buffer specified by StartOfBuffer.
@param FormatString Null-terminated Unicode format string.
-
+ @param ... Variable argument list based on the contents of the format string.
+
@return The number of ASCII characters in the produced output buffer not including the
Null-terminator.