]> asedeno.scripts.mit.edu Git - linux.git/commit
tools: gpio: Print error string on IOCTL failures
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Thu, 28 Sep 2017 13:01:44 +0000 (15:01 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 6 Oct 2017 22:03:14 +0000 (00:03 +0200)
commitd327a224ba2cbe234d82fd560ff8e5bb38b0bb4b
treedbc2c02afc0944051f97c219c915c34f81768abe
parenta3c1295280c8ac0823d0cac06f88a53928781a37
tools: gpio: Print error string on IOCTL failures

Add to error messages the error description by concatenating
output of strerror() function to error messages print out by
gpio-utils.c on IOCTL failures.
Rationalize error messages, while at there, making all of them
look the same.

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
tools/gpio/gpio-utils.c