summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Hofstee <jeroen@myspectrum.nl>2014-07-13 23:44:21 +0200
committerTom Rini <trini@ti.com>2014-07-18 17:53:24 -0400
commitc68112f3f505f2ad79e10a35a7c27af1620e29fc (patch)
treef99eb5071c57c3bcfe78dbc931d305bbf18a606f
parent39e1230ed02fad2f750b54968d70c00a72b08a4f (diff)
downloadu-boot-imx-c68112f3f505f2ad79e10a35a7c27af1620e29fc.zip
u-boot-imx-c68112f3f505f2ad79e10a35a7c27af1620e29fc.tar.gz
u-boot-imx-c68112f3f505f2ad79e10a35a7c27af1620e29fc.tar.bz2
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 <jeroen@myspectrum.nl>
-rw-r--r--common/cmd_mii.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/cmd_mii.c b/common/cmd_mii.c
index b82a7ce..7c4a57a 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)) {
}