diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | kern/printf.c | 2 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,7 @@ +2006-06-09 Stefan Siegl <stesie@brokenpipe.de> + + * kern/printf.c (_doprnt): Support printing of pointer addresses. + 2006-05-14 Roland McGrath <roland@frob.com> [sync from HEAD, 2002-06-17] diff --git a/kern/printf.c b/kern/printf.c index e6478ae..7dcb798 100644 --- a/kern/printf.c +++ b/kern/printf.c @@ -50,6 +50,7 @@ * * %d decimal conversion * %u unsigned conversion + * %p pointer address * %x hexadecimal conversion * %X hexadecimal conversion with capital letters * %o octal conversion @@ -399,6 +400,7 @@ void _doprnt( base = 10; goto print_unsigned; + case 'p': case 'x': truncate = _doprnt_truncates; case 'X': |