AK: Make %llx work in printf

This commit is contained in:
Nico Weber 2020-08-27 16:04:29 -04:00 committed by Andreas Kling
parent 3d936d51fd
commit f2135d7d00
Notes: sideshowbarker 2024-07-19 02:59:04 +09:00

View file

@ -411,7 +411,10 @@ ALWAYS_INLINE int printf_internal(PutChFunc putch, char* buffer, const char*& fm
case 'X':
case 'x':
ret += print_hex(putch, bufptr, va_arg(ap, u32), *p == 'X', alternate_form, left_pad, zero_pad, field_width);
if (long_qualifiers >= 2)
ret += print_hex(putch, bufptr, va_arg(ap, u64), *p == 'X', alternate_form, left_pad, zero_pad, field_width);
else
ret += print_hex(putch, bufptr, va_arg(ap, u32), *p == 'X', alternate_form, left_pad, zero_pad, field_width);
break;
case 'w':