gpioset: tweak error messages
authorBartosz Golaszewski <bartekgola@gmail.com>
Tue, 17 Jan 2017 14:45:39 +0000 (15:45 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Tue, 17 Jan 2017 14:45:39 +0000 (15:45 +0100)
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/tools/gpioset.c

index 9915ba1dfd1021be0df048ee6fde7d6912530683..b6f94654808e8ae7039683f649c3910349fcb098 100644 (file)
@@ -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",