#/** @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
/** @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
\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
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
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
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
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