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
commit 9273589c5e
Notes: sideshowbarker 2024-07-19 12:13:11 +09:00

View file

@ -331,11 +331,11 @@ template<typename PutChFunc>
break; break;
case 'w': 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; break;
case 'b': 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; break;
case 'c': case 'c':