common: cmd_mii: fix printf format warning
authorJeroen Hofstee <jeroen@myspectrum.nl>
Sun, 13 Jul 2014 21:44:21 +0000 (23:44 +0200)
committerTom Rini <trini@ti.com>
Fri, 18 Jul 2014 21:53:24 +0000 (17:53 -0400)
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 <jeroen@myspectrum.nl>
common/cmd_mii.c

index b82a7ce612c2a23df0bf24823025c5955a7401ff..7c4a57aa569fd9d0a7ba7da4769ec02190a02ca0 100644 (file)
@@ -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)) {
                }