mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:27:35 +00:00
AK: Fix printf %x padding and %p length
This commit is contained in:
parent
841f1276e6
commit
87808e535a
1 changed files with 2 additions and 1 deletions
|
@ -39,6 +39,7 @@ template<typename PutChFunc, typename T>
|
|||
putch(bufptr, '0');
|
||||
putch(bufptr, 'x');
|
||||
ret += 2;
|
||||
width += 2;
|
||||
}
|
||||
|
||||
if (zeroPad) {
|
||||
|
@ -348,7 +349,7 @@ template<typename PutChFunc>
|
|||
|
||||
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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue