Do not use %hx for chars, ok kettenis
authorderaadt <deraadt@openbsd.org>
Thu, 21 Dec 2017 06:55:22 +0000 (06:55 +0000)
committerderaadt <deraadt@openbsd.org>
Thu, 21 Dec 2017 06:55:22 +0000 (06:55 +0000)
sys/dev/softraid.c

index 6923962..806c3e3 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: softraid.c,v 1.387 2017/12/20 02:02:31 krw Exp $ */
+/* $OpenBSD: softraid.c,v 1.388 2017/12/21 06:55:22 deraadt Exp $ */
 /*
  * Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us>
  * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org>
@@ -1532,8 +1532,8 @@ sr_map_root(void)
                                        memcpy(rootduid, sbm->sbm_root_duid,
                                            sizeof(rootduid));
                                        DNPRINTF(SR_D_MISC, "%s: root duid "
-                                           "mapped to %02hx%02hx%02hx%02hx"
-                                           "%02hx%02hx%02hx%02hx\n",
+                                           "mapped to %0x%0x%02x%02x"
+                                           "%02x%02x%02x%02x\n",
                                            DEVNAME(sc), rootduid[0],
                                            rootduid[1], rootduid[2],
                                            rootduid[3], rootduid[4],