artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b603bdc
)
print 0x for %p
author
mickey
<mickey@openbsd.org>
Thu, 6 Feb 1997 15:51:13 +0000
(15:51 +0000)
committer
mickey
<mickey@openbsd.org>
Thu, 6 Feb 1997 15:51:13 +0000
(15:51 +0000)
sys/lib/libsa/printf.c
patch
|
blob
|
history
diff --git
a/sys/lib/libsa/printf.c
b/sys/lib/libsa/printf.c
index
b1f4568
..
b20bcde
100644
(file)
--- 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 ?