]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/UefiLib/UefiLibPrint.c
Refine MdePkg library instances: Remove unnecessary EFIAPI modifier for library worke...
[mirror_edk2.git] / MdePkg / Library / UefiLib / UefiLibPrint.c
index 4a21a6d9d8405f59f30a93be9b7202fae62531d1..247838023270ecf767be93f456cb4ea382ce1d1f 100644 (file)
@@ -15,7 +15,7 @@
 \r
 #include "UefiLibInternal.h"\r
 \r
-EFI_GRAPHICS_OUTPUT_BLT_PIXEL mEfiColors[16] = {\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_GRAPHICS_OUTPUT_BLT_PIXEL mEfiColors[16] = {\r
   { 0x00, 0x00, 0x00, 0x00 },\r
   { 0x98, 0x00, 0x00, 0x00 },\r
   { 0x00, 0x98, 0x00, 0x00 },\r
@@ -85,14 +85,14 @@ InternalPrint (
   return Return;\r
 }\r
 \r
-/**\r
-  Prints a formatted Unicode string to the console output device specified by\r
+/** \r
+  Prints a formatted Unicode string to the console output device specified by \r
   ConOut defined in the EFI_SYSTEM_TABLE.\r
 \r
-  This function prints a formatted Unicode string to the console output device\r
-  specified by ConOut in EFI_SYSTEM_TABLE and returns the number of Unicode\r
-  characters that printed to ConOut.  If the length of the formatted Unicode\r
-  string is greater than PcdUefiLibMaxPrintBufferSize, then only the first\r
+  This function prints a formatted Unicode string to the console output device \r
+  specified by ConOut in EFI_SYSTEM_TABLE and returns the number of Unicode \r
+  characters that printed to ConOut.  If the length of the formatted Unicode \r
+  string is greater than PcdUefiLibMaxPrintBufferSize, then only the first \r
   PcdUefiLibMaxPrintBufferSize characters are sent to ConOut.\r
   If Format is NULL, then ASSERT().\r
   If Format is not aligned on a 16-bit boundary, then ASSERT().\r
@@ -101,8 +101,7 @@ InternalPrint (
   @param ...      Variable argument list whose contents are accessed based \r
                   on the format string specified by Format.\r
   \r
-  @return The number of Unicode characters in the produced\r
-          output buffer not including the Null-terminator.\r
+  @return Number of Unicode characters printed to ConOut.\r
 \r
 **/\r
 UINTN\r
@@ -124,14 +123,14 @@ Print (
   return Return;\r
 }\r
 \r
-/**\r
-  Prints a formatted Unicode string to the console output device specified by\r
+/** \r
+  Prints a formatted Unicode string to the console output device specified by \r
   StdErr defined in the EFI_SYSTEM_TABLE.\r
 \r
-  This function prints a formatted Unicode string to the console output device\r
-  specified by StdErr in EFI_SYSTEM_TABLE and returns the number of Unicode\r
-  characters that printed to StdErr.  If the length of the formatted Unicode\r
-  string is greater than PcdUefiLibMaxPrintBufferSize, then only the first\r
+  This function prints a formatted Unicode string to the console output device \r
+  specified by StdErr in EFI_SYSTEM_TABLE and returns the number of Unicode \r
+  characters that printed to StdErr.  If the length of the formatted Unicode \r
+  string is greater than PcdUefiLibMaxPrintBufferSize, then only the first \r
   PcdUefiLibMaxPrintBufferSize characters are sent to StdErr.\r
   If Format is NULL, then ASSERT().\r
   If Format is not aligned on a 16-bit boundary, then ASSERT().\r
@@ -139,9 +138,9 @@ Print (
   @param Format   Null-terminated Unicode format string.\r
   @param ...      Variable argument list whose contents are accessed based \r
                   on the format string specified by Format.\r
+  \r
+  @return Number of Unicode characters printed to StdErr.\r
 \r
-  @return The number of Unicode characters in the produced\r
-          output buffer not including the Null-terminator.\r
 **/\r
 UINTN\r
 EFIAPI\r
@@ -214,14 +213,14 @@ AsciiInternalPrint (
   return Return;\r
 }\r
 \r
-/**\r
-  Prints a formatted ASCII string to the console output device specified by\r
+/** \r
+  Prints a formatted ASCII string to the console output device specified by \r
   ConOut defined in the EFI_SYSTEM_TABLE.\r
 \r
-  This function prints a formatted ASCII string to the console output device\r
-  specified by ConOut in EFI_SYSTEM_TABLE and returns the number of ASCII\r
-  characters that printed to ConOut.  If the length of the formatted ASCII\r
-  string is greater than PcdUefiLibMaxPrintBufferSize, then only the first\r
+  This function prints a formatted ASCII string to the console output device \r
+  specified by ConOut in EFI_SYSTEM_TABLE and returns the number of ASCII \r
+  characters that printed to ConOut.  If the length of the formatted ASCII \r
+  string is greater than PcdUefiLibMaxPrintBufferSize, then only the first \r
   PcdUefiLibMaxPrintBufferSize characters are sent to ConOut.\r
   If Format is NULL, then ASSERT().\r
 \r
@@ -229,8 +228,7 @@ AsciiInternalPrint (
   @param ...      Variable argument list whose contents are accessed based \r
                   on the format string specified by Format.\r
   \r
-  @return The number of Ascii characters in the produced\r
-          output buffer not including the Null-terminator.\r
+  @return Number of ASCII characters printed to ConOut.\r
 \r
 **/\r
 UINTN\r
@@ -253,14 +251,14 @@ AsciiPrint (
   return Return;\r
 }\r
 \r
-/**\r
-  Prints a formatted ASCII string to the console output device specified by\r
+/** \r
+  Prints a formatted ASCII string to the console output device specified by \r
   StdErr defined in the EFI_SYSTEM_TABLE.\r
 \r
-  This function prints a formatted ASCII string to the console output device\r
-  specified by StdErr in EFI_SYSTEM_TABLE and returns the number of ASCII\r
-  characters that printed to StdErr.  If the length of the formatted ASCII\r
-  string is greater than PcdUefiLibMaxPrintBufferSize, then only the first\r
+  This function prints a formatted ASCII string to the console output device \r
+  specified by StdErr in EFI_SYSTEM_TABLE and returns the number of ASCII \r
+  characters that printed to StdErr.  If the length of the formatted ASCII \r
+  string is greater than PcdUefiLibMaxPrintBufferSize, then only the first \r
   PcdUefiLibMaxPrintBufferSize characters are sent to StdErr.\r
   If Format is NULL, then ASSERT().\r
 \r
@@ -268,8 +266,7 @@ AsciiPrint (
   @param ...      Variable argument list whose contents are accessed based \r
                   on the format string specified by Format.\r
   \r
-  @return The number of Ascii characters in the produced output\r
-          buffer not including the Null-terminator.\r
+  @return Number of ASCII characters printed to ConErr.\r
 \r
 **/\r
 UINTN\r
@@ -567,7 +564,7 @@ Error:
   @param  ...          Variable argument list whose contents are accessed based on \r
                        the format string specified by Format.         \r
 \r
-  @return  The number of characters printed.\r
+  @return  The number of Unicode characters printed.\r
 \r
 **/\r
 UINTN\r
@@ -612,7 +609,7 @@ PrintXY (
 \r
   This function prints a formatted ASCII string to the graphics console device \r
   specified by ConsoleOutputHandle in EFI_SYSTEM_TABLE and returns the number of \r
-  Unicode characters printed.  If the length of the formatted ASCII string is\r
+  ASCII characters printed.  If the length of the formatted ASCII string is\r
   greater than PcdUefiLibMaxPrintBufferSize, then only the first \r
   PcdUefiLibMaxPrintBufferSize characters are printed.  The EFI_HII_FONT_PROTOCOL\r
   is used to convert the string to a bitmap using the glyphs registered with the \r
@@ -640,7 +637,7 @@ PrintXY (
   @param  ...          Variable argument list whose contents are accessed based on \r
                        the format string specified by Format.         \r
 \r
-  @return  The number of characters printed.\r
+  @return  The number of ASCII characters printed.\r
 \r
 **/\r
 UINTN\r