mirror of
https://github.com/nodemcu/nodemcu-firmware.git
synced 2025-01-30 21:12:55 +08:00
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);
|
va_arg(ap, uint32_t) : va_arg(ap, uint32_t);
|
||||||
kprintn(put, ul, 10, width, zwidth);
|
kprintn(put, ul, 10, width, zwidth);
|
||||||
break;
|
break;
|
||||||
|
case 'p':
|
||||||
|
ul = va_arg(ap, ptrdiff_t);
|
||||||
|
kprintn(put, ul, 16, width, zwidth);
|
||||||
|
break;
|
||||||
case 'x':
|
case 'x':
|
||||||
ul = lflag ?
|
ul = lflag ?
|
||||||
va_arg(ap, uint32_t) : va_arg(ap, uint32_t);
|
va_arg(ap, uint32_t) : va_arg(ap, uint32_t);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user