artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6930418
)
Fix formwat string. Cast pointer to long and print it using %lx since %p
author
kettenis
<kettenis@openbsd.org>
Sat, 10 May 2014 12:36:22 +0000
(12:36 +0000)
committer
kettenis
<kettenis@openbsd.org>
Sat, 10 May 2014 12:36:22 +0000
(12:36 +0000)
prefixes the address with 0x which we want to avoid here.
sys/arch/sparc64/dev/prtc.c
patch
|
blob
|
history
diff --git
a/sys/arch/sparc64/dev/prtc.c
b/sys/arch/sparc64/dev/prtc.c
index
b7ecb8f
..
a44b7a9
100644
(file)
--- a/
sys/arch/sparc64/dev/prtc.c
+++ b/
sys/arch/sparc64/dev/prtc.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: prtc.c,v 1.
2 2008/07/10 08:58:00
kettenis Exp $ */
+/* $OpenBSD: prtc.c,v 1.
3 2014/05/10 12:36:22
kettenis Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
@@
-93,7
+93,7
@@
prtc_gettime(todr_chip_handle_t handle, struct timeval *tv)
return (0);
}
- snprintf(buf, sizeof(buf), "h# %08
x unix-gettod",
&tod);
+ snprintf(buf, sizeof(buf), "h# %08
lx unix-gettod", (long)
&tod);
OF_interpret(buf, 0);
tv->tv_sec = tod;