cmd: gpio: use correct printf code
PATCH 1/1 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 <[email protected]>
--- cmd/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/gpio.c +1 -1
@@ -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
Signature · 1 line
2.20.1
PATCH 1/1 cmd: gpio: use correct printf code
Quoted 8 lines · Heinrich Schuchardt
gpio is defined as unsigned int. So we should use %u when calling
printf().Signed-off-by Heinrich Schuchardt <[email protected]>--- cmd/gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Simon Glass <[email protected]>
PATCH 1/1 cmd: gpio: use correct printf code
In reply to Heinrich SchuchardtQuoted 4 lines · Heinrich Schuchardt
gpio is defined as unsigned int. So we should use %u when calling
printf().Signed-off-by Heinrich Schuchardt <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190115/1f608b56/attachment.sig>