diff options
author | Jeroen Hofstee <jeroen@myspectrum.nl> | 2014-07-13 23:44:21 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-07-18 17:53:24 -0400 |
commit | c68112f3f505f2ad79e10a35a7c27af1620e29fc (patch) | |
tree | f99eb5071c57c3bcfe78dbc931d305bbf18a606f /common | |
parent | 39e1230ed02fad2f750b54968d70c00a72b08a4f (diff) | |
download | u-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>
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_mii.c | 8 |
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)) { } |