tracing/tools: fix a couple of spelling mistakes
PATCH 1/1 tracing/tools: fix a couple of spelling mistakes
From: Colin Ian King <[email protected]>
There is a spelling mistake in the -g help option, I believe it should be "graph". There is also a spelling mistake in a warning message. Fix both mistakes.
Signed-off-by Colin Ian King <[email protected]>
---
V2: Also fix "nummer" spelling mistake.
--- tools/tracing/latency/latency-collector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tools/tracing/latency/latency-collector.c +2 -2
@@ -1650,7 +1650,7 @@ static void start_printthread(void)if (ufd <0 ||read (ufd, seed,sizeof (*seed)) !=sizeof (*seed)) {printf ( -"Warning! Using trivial random nummer seed, since %s not available\n" , +"Warning! Using trivial random number seed, since %s not available\n" ,DEV_URANDOM );fflush (stdout); *seed = i;
@@ -1711,7 +1711,7 @@ static void show_usage(void)"\t\t\tbeginning, end, and backtrace.\n\n" "-g, --graph\t\tEnable the display-graph option in trace_option. This\n" -"\t\t\toption causes ftrace to show the functionph of how\n" +"\t\t\toption causes ftrace to show the graph of how\n" "\t\t\tfunctions are calling other functions.\n\n" "-c, --policy POL\tRun the program with scheduling policy POL. POL can be\n"
Signature · 1 line
2.30.0
Hi,
Thanks for finding these mistakes.
tools/tracing/latency/latency-collector.c static void show_usage(void) · line 1715
Quoted 13 lines · Colin King
tools/tracing/latency/latency-collector.c +2
-2printf ( -"Warning! Using trivial random nummer seed, since %s not available\n" , +"Warning! Using trivial random number seed, since %s not available\n" ,DEV_URANDOM );fflush (stdout); *seed = i;@@ -1711,7 +1711,7 @@ static void show_usage(void)"\t\t\tbeginning, end, and backtrace.\n\n" "-g, --graph\t\tEnable the display-graph option in trace_option. This\n" -"\t\t\toption causes ftrace to show the functionph of how\n" +"\t\t\toption causes ftrace to show the graph of how\n" "\t\t\tfunctions are calling other functions.\n\n"
This is a large improvement but since the corrected word is so much shorter, we would ideally move the first word of the next line to this line as well:
"\t\t\toption causes ftrace to show the graph of how functions\n" "\t\t\tare calling other functions.\n\n"
best regards,
Viktor
Quoted 2 lines
tools/tracing/latency/latency-collector.c +0
-0"-c, --policy POL\tRun the program with scheduling policy POL. POL can be\n"