AK: Pad %b and %w to two and four places in printf

This commit is contained in:
Conrad Pankoff 2019-09-08 16:48:33 +10:00 committed by Andreas Kling
parent 64b1e9deec
commit 9273589c5e
Notes: sideshowbarker 2024-07-19 12:13:11 +09:00

View File

@ -331,11 +331,11 @@ template<typename PutChFunc>
break;
case 'w':
ret += print_hex(putch, bufptr, va_arg(ap, int), false, alternate_form, left_pad, zeroPad, 4);
ret += print_hex(putch, bufptr, va_arg(ap, int), false, alternate_form, true, true, 4);
break;
case 'b':
ret += print_hex(putch, bufptr, va_arg(ap, int), false, alternate_form, left_pad, zeroPad, 2);
ret += print_hex(putch, bufptr, va_arg(ap, int), false, alternate_form, true, true, 2);
break;
case 'c':