summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-09-18 13:23:38 +0000
committermiod <miod@openbsd.org>2011-09-18 13:23:38 +0000
commitd91bae076f4bbde2efe7c7f66cc3ba32e6f226d5 (patch)
tree14634518970c8bf29bb034d26c9e30fac38508df /sys/kern/subr_disk.c
parentRename the optional metadata handler function and factor out the optional (diff)
downloadwireguard-openbsd-d91bae076f4bbde2efe7c7f66cc3ba32e6f226d5.tar.xz
wireguard-openbsd-d91bae076f4bbde2efe7c7f66cc3ba32e6f226d5.zip
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/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c8
1 files changed, 4 insertions, 4 deletions
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);