diff options
author | Liming Gao <liming.gao@intel.com> | 2013-07-29 07:58:57 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2013-07-29 07:58:57 +0000 |
commit | 790f3b7521456c0f46a4c9d109c5f386eeb50e66 (patch) | |
tree | 9225121bc12f999c0667103cf06affbce4600d72 | |
parent | dcdaee884f1b504eca801e61b9cc553b6be31ed0 (diff) | |
download | edk2-790f3b7521456c0f46a4c9d109c5f386eeb50e66.zip edk2-790f3b7521456c0f46a4c9d109c5f386eeb50e66.tar.gz edk2-790f3b7521456c0f46a4c9d109c5f386eeb50e66.tar.bz2 |
Clarify PrintLib behavior on %d, %x, %l.
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Kinney, Michael D <michael.d.kinney@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14511 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | MdePkg/Include/Library/PrintLib.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/MdePkg/Include/Library/PrintLib.h b/MdePkg/Include/Library/PrintLib.h index 59af8ab..908c93b 100644 --- a/MdePkg/Include/Library/PrintLib.h +++ b/MdePkg/Include/Library/PrintLib.h @@ -2,7 +2,7 @@ Provides services to print a formatted string to a buffer. All combinations of
Unicode and ASCII strings are supported.
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
@@ -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.
If 0 is also specified, then 0 is ignored.
- L, l
- - The number being printed is a UINT64. Only valid for types X, x, and d.
- If this flag is not specified, then the number being printed is a int.
+ - The number being printed is size UINT64. Only valid for types X, x, and d.
+ If this flag is not specified, then the number being printed is size int.
- NOTE: All invalid flags are ignored.
[width]:
@@ -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
using this type too by making sure bits 8..15 of the argument are set to 0.
- x
- - The argument is a hexadecimal number. The characters used are 0..9 and
+ - The argument is an unsigned hexadecimal number. The characters used are 0..9 and
A..F. If the flag 'L' is not specified, then the argument is assumed
- to be an int. This does not follow ANSI C.
+ to be size int. This does not follow ANSI C.
- X
- - The argument is a hexadecimal number and the number is padded with
+ - The argument is an unsigned hexadecimal number and the number is padded with
zeros. This is equivalent to a format string of "0x". If the flag
- 'L' is not specified, then the argument is assumed to be an int.
+ 'L' is not specified, then the argument is assumed to be size int.
This does not follow ANSI C.
- d
- - The argument is a decimal number. If the flag 'L' is not specified,
- then the argument is assumed to be an int.
+ - The argument is a signed decimal number. If the flag 'L' is not specified,
+ then the argument is assumed to be size int.
- p
- - The argument is a pointer that is a (VOID *), and it is printed as a
- hexadecimal number The characters used are 0..9 and A..F.
+ - The argument is a pointer that is a (VOID *), and it is printed as an
+ unsigned hexadecimal number The characters used are 0..9 and A..F.
- a
- The argument is a pointer to an ASCII string.
This does not follow ANSI C.
|