From c68112f3f505f2ad79e10a35a7c27af1620e29fc Mon Sep 17 00:00:00 2001 From: Jeroen Hofstee Date: Sun, 13 Jul 2014 23:44:21 +0200 Subject: [PATCH] common: cmd_mii: fix printf format warning The and operator implicitly upcasts the value to int, hence the format should expect an int type as well. (and make checkpatch happy) Signed-off-by: Jeroen Hofstee --- common/cmd_mii.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/cmd_mii.c b/common/cmd_mii.c index b82a7ce612..7c4a57aa56 100644 --- a/common/cmd_mii.c +++ b/common/cmd_mii.c @@ -160,10 +160,10 @@ static void dump_reg( mask_in_place = pdesc->mask << pdesc->lo; - printf(" (%04hx:%04hx) %u.", - mask_in_place, - regval & mask_in_place, - prd->regno); + printf(" (%04hx:%04x) %u.", + mask_in_place, + regval & mask_in_place, + prd->regno); if (special_field(prd->regno, pdesc, regval)) { } -- 2.39.5