/** @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
#include <Library/PrintLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
\r
-static EFI_PRINT2_PROTOCOL *gPrintProtocol = NULL;\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 whose contents are accessed based on the \r
+ format string specified by FormatString.\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 whose contents are accessed based on the \r
+ format string specified by FormatString.\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 whose contents are accessed based on the \r
+ format string specified by FormatString.\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 whose contents are accessed based on the \r
+ format string specified by FormatString.\r
+\r
@return The number of ASCII characters in the produced output buffer not including the\r
Null-terminator.\r
\r
UINTN\r
EFIAPI\r
AsciiValueToString (\r
- IN OUT CHAR8 *Buffer,\r
- IN UINTN Flags,\r
- IN INT64 Value,\r
- IN UINTN Width\r
+ OUT CHAR8 *Buffer,\r
+ IN UINTN Flags,\r
+ IN INT64 Value,\r
+ IN UINTN Width\r
)\r
{\r
if (InternalLocatePrintProtocol() != EFI_SUCCESS) {\r