Skip to content

Commit 53afec2

Browse files
Zhang Chujunrostedt
authored andcommitted
tracing/tools: Fix incorrcet short option in usage text for --threads
The help message incorrectly listed '-t' as the short option for --threads, but the actual getopt_long configuration uses '-e'. This mismatch can confuse users and lead to incorrect command-line usage. This patch updates the usage string to correctly show: "-e, --threads NRTHR" to match the implementation. Note: checkpatch.pl reports a false-positive spelling warning on 'Run', which is intentional. Link: https://patch.msgid.link/[email protected] Signed-off-by: Zhang Chujun <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 80f0d63 commit 53afec2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/tracing/latency/latency-collector.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1725,7 +1725,7 @@ static void show_usage(void)
17251725
"-n, --notrace\t\tIf latency is detected, do not print out the content of\n"
17261726
"\t\t\tthe trace file to standard output\n\n"
17271727

1728-
"-t, --threads NRTHR\tRun NRTHR threads for printing. Default is %d.\n\n"
1728+
"-e, --threads NRTHR\tRun NRTHR threads for printing. Default is %d.\n\n"
17291729

17301730
"-r, --random\t\tArbitrarily sleep a certain amount of time, default\n"
17311731
"\t\t\t%ld ms, before reading the trace file. The\n"

0 commit comments

Comments
 (0)