mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
cmd: gpio: use correct printf code
gpio is defined as unsigned int. So we should use %u when calling printf(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
6e00104880
commit
b1970013d4
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ static int do_gpio(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
}
|
||||
gpio_direction_output(gpio, value);
|
||||
}
|
||||
printf("gpio: pin %s (gpio %i) value is ", str_gpio, gpio);
|
||||
printf("gpio: pin %s (gpio %u) value is ", str_gpio, gpio);
|
||||
if (IS_ERR_VALUE(value))
|
||||
printf("unknown (ret=%d)\n", value);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue