summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-06-09 19:08:12 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:37 +0200
commit46066cf8d9392a3a9a423f4a7e6c0582a1efcd88 (patch)
tree15b7724a489cf92c1ac0685f40fe5f2797eeafc6 /kern
parent2c4df0692a7062bbcd84a65c5c5310b104d8cd96 (diff)
2006-06-09 Stefan Siegl <stesie@brokenpipe.de>
* kern/printf.c (_doprnt): Support printing of pointer addresses.
Diffstat (limited to 'kern')
-rw-r--r--kern/printf.c2
1 files changed, 2 insertions, 0 deletions
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':