From: deraadt Date: Thu, 21 Dec 2017 06:55:22 +0000 (+0000) Subject: Do not use %hx for chars, ok kettenis X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=32e338492927b7c46a1e587f49d168578b3b5bdd;p=openbsd Do not use %hx for chars, ok kettenis --- diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 6923962d32f..806c3e33f61 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -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 * Copyright (c) 2008 Chris Kuethe @@ -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],