diff mbox series

[v1,2/5] tests/rcutorture: update usage hint

Message ID 20200207113939.9247-3-alex.bennee@linaro.org (mailing list archive)
State New, archived
Headers show
Series testing/next (rcutorture and misc tweaks) | expand

Commit Message

Alex Bennée Feb. 7, 2020, 11:39 a.m. UTC
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>
---
 tests/rcutorture.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Philippe Mathieu-Daudé Feb. 12, 2020, 8:46 p.m. UTC | #1
On 2/7/20 12:39 PM, Alex Bennée wrote:
> 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>
> ---
>   tests/rcutorture.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/rcutorture.c b/tests/rcutorture.c
> index 49311c82ea4..e8b2169e7dd 100644
> --- a/tests/rcutorture.c
> +++ b/tests/rcutorture.c
> @@ -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);
>   }
>   
> 

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
diff mbox series

Patch

diff --git a/tests/rcutorture.c b/tests/rcutorture.c
index 49311c82ea4..e8b2169e7dd 100644
--- a/tests/rcutorture.c
+++ b/tests/rcutorture.c
@@ -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);
 }