Add %p to libc's debug printf (#2062)
This commit is contained in:
parent
c4440e47ba
commit
fe032edd9c
|
@ -120,6 +120,10 @@ reswitch: switch (ch = *fmt++) {
|
|||
va_arg(ap, uint32_t) : va_arg(ap, uint32_t);
|
||||
kprintn(put, ul, 10, width, zwidth);
|
||||
break;
|
||||
case 'p':
|
||||
ul = va_arg(ap, ptrdiff_t);
|
||||
kprintn(put, ul, 16, width, zwidth);
|
||||
break;
|
||||
case 'x':
|
||||
ul = lflag ?
|
||||
va_arg(ap, uint32_t) : va_arg(ap, uint32_t);
|
||||
|
|
Loading…
Reference in New Issue