summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_sysctl.c6
-rw-r--r--sys/kern/subr_disk.c8
2 files changed, 7 insertions, 7 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]);
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 11fb04880e5..2228f1be758 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.131 2011/07/26 12:32:14 krw Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.132 2011/09/18 13:23:38 miod Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -1269,8 +1269,8 @@ gotswap:
&rootduid, sizeof(rootduid)) == 0)
break;
if (dk == NULL)
- panic("root device (%02hhx%02hhx%02hhx%02hhx"
- "%02hhx%02hhx%02hhx%02hhx) not found",
+ panic("root device (%02hx%02hx%02hx%02hx"
+ "%02hx%02hx%02hx%02hx) not found",
rootduid[0], rootduid[1], rootduid[2],
rootduid[3], rootduid[4], rootduid[5],
rootduid[6], rootduid[7]);
@@ -1336,7 +1336,7 @@ gotswap:
printf("root on %s%c", rootdv->dv_xname, 'a' + part);
if (dk != NULL && bcmp(rootduid, &duid, sizeof(rootduid)) == 0)
- printf(" (%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx.%c)",
+ printf(" (%02hx%02hx%02hx%02hx%02hx%02hx%02hx%02hx.%c)",
rootduid[0], rootduid[1], rootduid[2], rootduid[3],
rootduid[4], rootduid[5], rootduid[6], rootduid[7],
'a' + part);