From: Bartosz Golaszewski Date: Mon, 12 Jun 2017 10:41:48 +0000 (+0200) Subject: gpiofind: tweak the error message on invalid arguments X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=623d8d0cfb822fe8720306ebb9c16760bb79bcdd;p=qemu-gpiodev%2Flibgpiod.git gpiofind: tweak the error message on invalid arguments We print the same error message in case of too many or not enough arguments. Make the message appropriate for both cases. Signed-off-by: Bartosz Golaszewski --- diff --git a/src/tools/gpiofind.c b/src/tools/gpiofind.c index da285d3..9fbea7a 100644 --- a/src/tools/gpiofind.c +++ b/src/tools/gpiofind.c @@ -63,7 +63,7 @@ int main(int argc, char **argv) argv += optind; if (argc != 1) - die("GPIO line name must be specified"); + die("exactly one GPIO line name must be specified"); line = gpiod_line_find_by_name(argv[0]); if (!line)