mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
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
This commit is contained in:
parent
dcdaee884f
commit
790f3b7521
@ -2,7 +2,7 @@
|
|||||||
Provides services to print a formatted string to a buffer. All combinations of
|
Provides services to print a formatted string to a buffer. All combinations of
|
||||||
Unicode and ASCII strings are supported.
|
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
|
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 terms and conditions of the BSD License that accompanies this distribution.
|
||||||
The full text of the license may be found at
|
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.
|
- Place a comma every 3rd digit of the number. Only valid for type d.
|
||||||
If 0 is also specified, then 0 is ignored.
|
If 0 is also specified, then 0 is ignored.
|
||||||
- L, l
|
- L, l
|
||||||
- The number being printed is a UINT64. Only valid for types X, x, and d.
|
- 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 a int.
|
If this flag is not specified, then the number being printed is size int.
|
||||||
- NOTE: All invalid flags are ignored.
|
- NOTE: All invalid flags are ignored.
|
||||||
|
|
||||||
[width]:
|
[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
|
- 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.
|
using this type too by making sure bits 8..15 of the argument are set to 0.
|
||||||
- x
|
- 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
|
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
|
- 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
|
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.
|
This does not follow ANSI C.
|
||||||
- d
|
- d
|
||||||
- The argument is a decimal number. If the flag 'L' is not specified,
|
- The argument is a signed decimal number. If the flag 'L' is not specified,
|
||||||
then the argument is assumed to be an int.
|
then the argument is assumed to be size int.
|
||||||
- p
|
- p
|
||||||
- The argument is a pointer that is a (VOID *), and it is printed as a
|
- The argument is a pointer that is a (VOID *), and it is printed as an
|
||||||
hexadecimal number The characters used are 0..9 and A..F.
|
unsigned hexadecimal number The characters used are 0..9 and A..F.
|
||||||
- a
|
- a
|
||||||
- The argument is a pointer to an ASCII string.
|
- The argument is a pointer to an ASCII string.
|
||||||
This does not follow ANSI C.
|
This does not follow ANSI C.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user