From: Bartosz Golaszewski Date: Tue, 17 Jan 2017 14:45:39 +0000 (+0100) Subject: gpioset: tweak error messages X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bafaa52c0727f6d4065748d05b43c6da4aafe6bd;p=qemu-gpiodev%2Flibgpiod.git gpioset: tweak error messages Signed-off-by: Bartosz Golaszewski --- diff --git a/src/tools/gpioset.c b/src/tools/gpioset.c index 9915ba1..b6f9465 100644 --- a/src/tools/gpioset.c +++ b/src/tools/gpioset.c @@ -209,14 +209,14 @@ int main(int argc, char **argv) break; case 's': if (mode->id != MODE_TIME) - die("--mode=time must be selected to specify seconds"); + die("can't specify seconds in this mode"); cbdata.tv.tv_sec = strtoul(optarg, &end, 10); if (*end != '\0') die("invalid time value in seconds: %s", optarg); break; case 'u': if (mode->id != MODE_TIME) - die("--mode=time must be selected to specify microseconds"); + die("can't specify microseconds in this mode"); cbdata.tv.tv_usec = strtoul(optarg, &end, 10); if (*end != '\0') die("invalid time value in microseconds: %s",