summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2011-09-18 13:23:39 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2011-09-18 13:23:39 +0000
commit8961eca456609145265df76bf5209ebd47670001 (patch)
tree9c7bc4141b6103a37c0717cf80a9434958248261 /sys/kern/kern_sysctl.c
parente7f8f575542232e5c4a5a8577700b19f9395d0ed (diff)
Do not use the `hh' modifier in printf format strings, as the kernel printf
implementation does not support it and handles it as `h'. ok jsing@
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 32be5a89893..780a79da71c 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.207 2011/09/18 01:54:41 guenther Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.208 2011/09/18 13:23:38 miod Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -1764,8 +1764,8 @@ sysctl_diskinit(int update, struct proc *p)
bzero(duid, sizeof(duid));
if (dl && bcmp(dl->d_uid, &uid, sizeof(dl->d_uid))) {
snprintf(duid, sizeof(duid),
- "%02hhx%02hhx%02hhx%02hhx"
- "%02hhx%02hhx%02hhx%02hhx",
+ "%02hx%02hx%02hx%02hx"
+ "%02hx%02hx%02hx%02hx",
dl->d_uid[0], dl->d_uid[1], dl->d_uid[2],
dl->d_uid[3], dl->d_uid[4], dl->d_uid[5],
dl->d_uid[6], dl->d_uid[7]);