diff --git a/AK/PrintfImplementation.h b/AK/PrintfImplementation.h index 333a3210f22..9e8398163a1 100644 --- a/AK/PrintfImplementation.h +++ b/AK/PrintfImplementation.h @@ -39,6 +39,7 @@ template putch(bufptr, '0'); putch(bufptr, 'x'); ret += 2; + width += 2; } if (zeroPad) { @@ -348,7 +349,7 @@ template case 'P': case 'p': - ret += print_hex(putch, bufptr, va_arg(ap, u32), *p == 'P', true, false, true, 8); + ret += print_hex(putch, bufptr, va_arg(ap, u32), *p == 'P', true, true, true, 8); break; default: ASSERT_NOT_REACHED();