From bafaa52c0727f6d4065748d05b43c6da4aafe6bd Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Tue, 17 Jan 2017 15:45:39 +0100 Subject: [PATCH] gpioset: tweak error messages Signed-off-by: Bartosz Golaszewski --- src/tools/gpioset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", -- 2.30.2