summaryrefslogtreecommitdiffstats
path: root/images
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-10-26 18:31:52 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2018-10-29 09:10:38 +0100
commit05a4b7d4b1b56af927d703e3667e1c7868bab1d4 (patch)
tree0edf45301beb19c2cdfd6b79d219d0216a6169fe /images
parent4f3713adb0bc973122a977205a305813b38f63ba (diff)
downloadbarebox-05a4b7d4b1b56af927d703e3667e1c7868bab1d4.tar.gz
barebox-05a4b7d4b1b56af927d703e3667e1c7868bab1d4.tar.xz
commands: gpio: Use kstrtoint() instead of simple_strtoul()
Use kstrtoint() instead of simple_strtoul() in order to properly handle invalid arguments. Current code using simple_strtoul() results in following: barebox@ZII RDU2 Board:/ gpio_get_value foo barebox@ZII RDU2 Board:/ echo $? 0 whereas with this patch we get: barebox@ZII RDU2 Board:/ gpio_get_value foo gpio_get_value: Invalid argument Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'images')
0 files changed, 0 insertions, 0 deletions