]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Library/PrintLib.h
Clarify PrintLib behavior on %d, %x, %l.
[mirror_edk2.git] / MdePkg / Include / Library / PrintLib.h
index 59af8ab6348b0664adace023102ef955ec804e99..908c93b3c802a04b779528c35d1310d22dc4bc66 100644 (file)
@@ -2,7 +2,7 @@
   Provides services to print a formatted string to a buffer. All combinations of\r
   Unicode and ASCII strings are supported.\r
 \r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials are licensed and made available under \r
 the terms and conditions of the BSD License that accompanies this distribution.  \r
 The full text of the license may be found at\r
@@ -46,8 +46,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
       - Place a comma every 3rd digit of the number.  Only valid for type d.\r
         If 0 is also specified, then 0 is ignored.\r
     - L, l\r
-      - The number being printed is a UINT64.  Only valid for types X, x, and d.\r
-        If this flag is not specified, then the number being printed is a int.\r
+      - The number being printed is size UINT64.  Only valid for types X, x, and d.\r
+        If this flag is not specified, then the number being printed is size int.\r
     - NOTE: All invalid flags are ignored.\r
 \r
   [width]:\r
@@ -78,20 +78,20 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
       - The argument is a Unicode character.  ASCII characters can be printed \r
         using this type too by making sure bits 8..15 of the argument are set to 0.\r
     - x\r
-      - The argument is a hexadecimal number.  The characters used are 0..9 and \r
+      - The argument is an unsigned hexadecimal number.  The characters used are 0..9 and \r
         A..F.  If the flag 'L' is not specified, then the argument is assumed \r
-        to be an int.  This does not follow ANSI C.\r
+        to be size int.  This does not follow ANSI C.\r
     - X\r
-      - The argument is a hexadecimal number and the number is padded with \r
+      - The argument is an unsigned hexadecimal number and the number is padded with \r
         zeros.  This is equivalent to a format string of "0x". If the flag \r
-        'L' is not specified, then the argument is assumed to be an int.  \r
+        'L' is not specified, then the argument is assumed to be size int.  \r
         This does not follow ANSI C.\r
     - d\r
-      - The argument is a decimal number.  If the flag 'L' is not specified, \r
-        then the argument is assumed to be an int.  \r
+      - The argument is a signed decimal number.  If the flag 'L' is not specified, \r
+        then the argument is assumed to be size int.  \r
     - p\r
-      - The argument is a pointer that is a (VOID *), and it is printed as a \r
-        hexadecimal number  The characters used are 0..9 and A..F.\r
+      - The argument is a pointer that is a (VOID *), and it is printed as an \r
+        unsigned hexadecimal number  The characters used are 0..9 and A..F.\r
     - a\r
       - The argument is a pointer to an ASCII string.  \r
         This does not follow ANSI C.\r