projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e00104
)
cmd: gpio: use correct printf code
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 6 Jan 2019 10:31:54 +0000
(11:31 +0100)
committer
Tom Rini
<trini@konsulko.com>
Tue, 15 Jan 2019 20:28:43 +0000
(15:28 -0500)
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>
cmd/gpio.c
patch
|
blob
|
history
diff --git
a/cmd/gpio.c
b/cmd/gpio.c
index ecdc453918f48e1e9390b20f21a8010530315f97..c60946bc06934cdf71d03029dd5a4121993a8b3c 100644
(file)
--- 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