From 9273589c5eb0f24d6ee60b361666d0e7d9218607 Mon Sep 17 00:00:00 2001 From: Conrad Pankoff Date: Sun, 8 Sep 2019 16:48:33 +1000 Subject: [PATCH] AK: Pad %b and %w to two and four places in printf --- AK/PrintfImplementation.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AK/PrintfImplementation.h b/AK/PrintfImplementation.h index 325541d384..e93103739c 100644 --- a/AK/PrintfImplementation.h +++ b/AK/PrintfImplementation.h @@ -331,11 +331,11 @@ template 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':