Skip to content
Snippets Groups Projects
Commit c68112f3 authored by Jeroen Hofstee's avatar Jeroen Hofstee Committed by Tom Rini
Browse files

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: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
parent 39e1230e
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment