aboutsummaryrefslogtreecommitdiff
path: root/cmd/gpio.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-01-06 11:31:54 +0100
committerTom Rini <trini@konsulko.com>2019-01-15 15:28:43 -0500
commitb1970013d4da5579cf33f0da84715d49d9690d49 (patch)
tree6b46e916bca2bb45628e77b8b0b0f49a5c5a9947 /cmd/gpio.c
parent6e00104880d73f21076f443085f102d323d25b0f (diff)
downloadu-boot-b1970013d4da5579cf33f0da84715d49d9690d49.zip
u-boot-b1970013d4da5579cf33f0da84715d49d9690d49.tar.gz
u-boot-b1970013d4da5579cf33f0da84715d49d9690d49.tar.bz2
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>
Diffstat (limited to 'cmd/gpio.c')
-rw-r--r--cmd/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gpio.c b/cmd/gpio.c
index ecdc453..c60946b 100644
--- a/cmd/gpio.c
+++ b/cmd/gpio.c
@@ -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