summaryrefslogtreecommitdiff
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
parent2c4df0692a7062bbcd84a65c5c5310b104d8cd96 (diff)
2006-06-09 Stefan Siegl <stesie@brokenpipe.de>
* kern/printf.c (_doprnt): Support printing of pointer addresses.
-rw-r--r--ChangeLog4
-rw-r--r--kern/printf.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 635ff51..28861f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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':