]> git.baikalelectronics.ru Git - kernel.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)
commit74be4db41b6df307fad5417d8ab343ab8c8691aa
treedbc2c02afc0944051f97c219c915c34f81768abe
parentaa3c9f25594ce242faee5c5815686baecc0f66eb
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