http://git.etherboot.org
/
people
/
xl0
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e761f5
)
Accept '%i' as a synonym for '%d'.
author
Michael Brown
<mcb30@etherboot.org>
Tue, 25 Jul 2006 14:33:20 +0000
(14:33 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Tue, 25 Jul 2006 14:33:20 +0000
(14:33 +0000)
src/core/vsprintf.c
patch
|
blob
|
history
diff --git
a/src/core/vsprintf.c
b/src/core/vsprintf.c
index
a80c62e
..
7626787
100644
(file)
--- a/
src/core/vsprintf.c
+++ b/
src/core/vsprintf.c
@@
-237,7
+237,7
@@
size_t vcprintf ( struct printf_context *ctx, const char *fmt, va_list args ) {
hex = va_arg ( args, unsigned int );
}
ptr = format_hex ( ptr, hex, width, flags );
- } else if (
*fmt == 'd' )
{
+ } else if (
( *fmt == 'd' ) || ( *fmt == 'i' ) )
{
signed long decimal;
if ( *length >= sizeof ( signed long ) ) {