From 623d8d0cfb822fe8720306ebb9c16760bb79bcdd Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Mon, 12 Jun 2017 12:41:48 +0200 Subject: [PATCH] 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 --- src/tools/gpiofind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2