OSDN Git Service

bpftool: fix perf help message
authorDaniel T. Lee <danieltimlee@gmail.com>
Fri, 11 Aug 2023 12:16:03 +0000 (21:16 +0900)
committerMartin KaFai Lau <martin.lau@kernel.org>
Sat, 12 Aug 2023 03:54:29 +0000 (20:54 -0700)
Currently, bpftool perf subcommand has typo with the help message.

    $ tools/bpf/bpftool/bpftool perf help
    Usage: bpftool perf { show | list }
           bpftool perf help }

Since this bpftool perf subcommand help message has the extra bracket,
this commit fix the typo by removing the extra bracket.

Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/r/20230811121603.17429-1-danieltimlee@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/bpf/bpftool/perf.c

index 9174344..80de287 100644 (file)
@@ -236,7 +236,7 @@ static int do_help(int argc, char **argv)
 {
        fprintf(stderr,
                "Usage: %1$s %2$s { show | list }\n"
-               "       %1$s %2$s help }\n"
+               "       %1$s %2$s help\n"
                "\n"
                "       " HELP_SPEC_OPTIONS " }\n"
                "",