summaryrefslogtreecommitdiffstats
path: root/src/core/vsprintf.c
diff options
context:
space:
mode:
authorMichael Brown2006-07-25 16:33:20 +0200
committerMichael Brown2006-07-25 16:33:20 +0200
commit6e3e5efaedaff9db5e9e0f613cf067dbf49f9378 (patch)
tree5150bd7e33eed9e25678e3e1cec28ee34519aead /src/core/vsprintf.c
parentPrint out "DHCP..." message just in case people think the demo is sitting (diff)
downloadipxe-6e3e5efaedaff9db5e9e0f613cf067dbf49f9378.tar.gz
ipxe-6e3e5efaedaff9db5e9e0f613cf067dbf49f9378.tar.xz
ipxe-6e3e5efaedaff9db5e9e0f613cf067dbf49f9378.zip
Accept '%i' as a synonym for '%d'.
Diffstat (limited to 'src/core/vsprintf.c')
-rw-r--r--src/core/vsprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/vsprintf.c b/src/core/vsprintf.c
index a80c62ef..7626787d 100644
--- 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 ) ) {