OSDN Git Service

tests/rcutorture: update usage hint
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 25 Feb 2020 12:46:53 +0000 (12:46 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 25 Feb 2020 17:42:59 +0000 (17:42 +0000)
Although documented in the comments we don't display all the various
invocations we can in the usage.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200225124710.14152-3-alex.bennee@linaro.org>

tests/rcutorture.c

index 49311c8..e8b2169 100644 (file)
@@ -413,7 +413,8 @@ static void gtest_stress_10_5(void)
 
 static void usage(int argc, char *argv[])
 {
-    fprintf(stderr, "Usage: %s [nreaders [ perf | stress ] ]\n", argv[0]);
+    fprintf(stderr, "Usage: %s [nreaders [ [r|u]perf | stress [duration]]\n",
+            argv[0]);
     exit(-1);
 }