summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-02-06 15:51:14 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-02-06 15:51:14 +0000
commite9cbad18615f2e1fe42a5075063877f29370c0f8 (patch)
tree67ab3130f540b930eff70bbf0ec305f46c9628d6
parentb4efc518e602e88b5cae6908142488512120f153 (diff)
print 0x for %p
-rw-r--r--sys/lib/libsa/printf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/lib/libsa/printf.c b/sys/lib/libsa/printf.c
index b1f4568afa2..b20bcdeee4b 100644
--- a/sys/lib/libsa/printf.c
+++ b/sys/lib/libsa/printf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printf.c,v 1.8 1997/02/06 14:26:08 mickey Exp $ */
+/* $OpenBSD: printf.c,v 1.9 1997/02/06 15:51:13 mickey Exp $ */
/* $NetBSD: printf.c,v 1.10 1996/11/30 04:19:21 gwr Exp $ */
/*-
@@ -206,6 +206,8 @@ reswitch: switch (ch = *fmt++) {
kprintn(put, ul, 10);
break;
case 'p':
+ putchar('0');
+ putchar('x');
lflag += sizeof(void *)==sizeof(u_long)? 1 : 0;
case 'x':
ul = lflag ?