mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
Accept '%i' as a synonym for '%d'.
This commit is contained in:
@@ -237,7 +237,7 @@ size_t vcprintf ( struct printf_context *ctx, const char *fmt, va_list args ) {
|
|||||||
hex = va_arg ( args, unsigned int );
|
hex = va_arg ( args, unsigned int );
|
||||||
}
|
}
|
||||||
ptr = format_hex ( ptr, hex, width, flags );
|
ptr = format_hex ( ptr, hex, width, flags );
|
||||||
} else if ( *fmt == 'd' ) {
|
} else if ( ( *fmt == 'd' ) || ( *fmt == 'i' ) ){
|
||||||
signed long decimal;
|
signed long decimal;
|
||||||
|
|
||||||
if ( *length >= sizeof ( signed long ) ) {
|
if ( *length >= sizeof ( signed long ) ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user