summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_disk.c
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2017-08-06 19:56:29 +0000
committerkettenis <kettenis@openbsd.org>2017-08-06 19:56:29 +0000
commit72c3245e3db32d063ff139cc97ffa3cd0925f8a8 (patch)
treeb6af2bad7aa2f77947ddc3ed11b4f296828a92eb /sys/kern/subr_disk.c
parentImprove error checking during processing of routing messages. Handling of (diff)
downloadwireguard-openbsd-72c3245e3db32d063ff139cc97ffa3cd0925f8a8.tar.xz
wireguard-openbsd-72c3245e3db32d063ff139cc97ffa3cd0925f8a8.zip
Use %hhx instead of %hx to print u_char. Silences clang warning.
ok jca@, florian@
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r--sys/kern/subr_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c
index 07783b57002..931b72b5f2a 100644
--- a/sys/kern/subr_disk.c
+++ b/sys/kern/subr_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_disk.c,v 1.230 2017/05/04 22:47:27 deraadt Exp $ */
+/* $OpenBSD: subr_disk.c,v 1.231 2017/08/06 19:56:29 kettenis Exp $ */
/* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */
/*
@@ -1864,7 +1864,7 @@ duid_format(u_char *duid)
static char duid_str[17];
snprintf(duid_str, sizeof(duid_str),
- "%02hx%02hx%02hx%02hx%02hx%02hx%02hx%02hx",
+ "%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx",
duid[0], duid[1], duid[2], duid[3],
duid[4], duid[5], duid[6], duid[7]);