forked from len0rd/rockbox
format/*printf: Add simple support for %p format specifier.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30249 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8207a4a267
commit
44ffa3ef93
1 changed files with 6 additions and 1 deletions
|
@ -111,7 +111,12 @@ void format(
|
||||||
}
|
}
|
||||||
while (uval > 0);
|
while (uval > 0);
|
||||||
break;
|
break;
|
||||||
|
case 'p':
|
||||||
|
case 'P':
|
||||||
|
/* for pointers prepend 0x and act like 'X' */
|
||||||
|
push(userp, '0');
|
||||||
|
push(userp, 'x');
|
||||||
|
/* fall through */
|
||||||
case 'x':
|
case 'x':
|
||||||
case 'X':
|
case 'X':
|
||||||
pad='0';
|
pad='0';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue