From: Jeroen Hofstee Date: Sun, 13 Jul 2014 21:44:21 +0000 (+0200) Subject: common: cmd_mii: fix printf format warning X-Git-Tag: v2014.10-rc1~118 X-Git-Url: https://git.kernelconcepts.de/?a=commitdiff_plain;h=c68112f3f505f2ad79e10a35a7c27af1620e29fc;p=karo-tx-uboot.git 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 --- 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)) { }