diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-03-12 22:20:49 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-06 08:41:49 -0400 |
commit | 502fc5c72a886ff9d4d7a596e65ecc4dd5e4d458 (patch) | |
tree | d7ea78d9f6360c10ee52202f45567611d2ca61c7 /Documentation/perf_counter/builtin-help.c | |
parent | 386b05e3a2f3c5b0a9c5575060421cca0911648a (diff) |
perf_counter tools: Uniform help printouts
Also add perf list to command-list.txt.
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/builtin-help.c')
-rw-r--r-- | Documentation/perf_counter/builtin-help.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/perf_counter/builtin-help.c b/Documentation/perf_counter/builtin-help.c index a3894bfb9b6e..0f32dc3f3c4c 100644 --- a/Documentation/perf_counter/builtin-help.c +++ b/Documentation/perf_counter/builtin-help.c | |||
@@ -284,7 +284,7 @@ void list_common_cmds_help(void) | |||
284 | longest = strlen(common_cmds[i].name); | 284 | longest = strlen(common_cmds[i].name); |
285 | } | 285 | } |
286 | 286 | ||
287 | puts("The most commonly used perf commands are:"); | 287 | puts(" The most commonly used perf commands are:"); |
288 | for (i = 0; i < ARRAY_SIZE(common_cmds); i++) { | 288 | for (i = 0; i < ARRAY_SIZE(common_cmds); i++) { |
289 | printf(" %s ", common_cmds[i].name); | 289 | printf(" %s ", common_cmds[i].name); |
290 | mput_char(' ', longest - strlen(common_cmds[i].name)); | 290 | mput_char(' ', longest - strlen(common_cmds[i].name)); |
@@ -426,16 +426,16 @@ int cmd_help(int argc, const char **argv, const char *prefix) | |||
426 | builtin_help_usage, 0); | 426 | builtin_help_usage, 0); |
427 | 427 | ||
428 | if (show_all) { | 428 | if (show_all) { |
429 | printf("usage: %s\n\n", perf_usage_string); | 429 | printf("\n usage: %s\n\n", perf_usage_string); |
430 | list_commands("perf commands", &main_cmds, &other_cmds); | 430 | list_commands("perf commands", &main_cmds, &other_cmds); |
431 | printf("%s\n", perf_more_info_string); | 431 | printf(" %s\n\n", perf_more_info_string); |
432 | return 0; | 432 | return 0; |
433 | } | 433 | } |
434 | 434 | ||
435 | if (!argv[0]) { | 435 | if (!argv[0]) { |
436 | printf("usage: %s\n\n", perf_usage_string); | 436 | printf("\n usage: %s\n\n", perf_usage_string); |
437 | list_common_cmds_help(); | 437 | list_common_cmds_help(); |
438 | printf("\n%s\n", perf_more_info_string); | 438 | printf("\n %s\n\n", perf_more_info_string); |
439 | return 0; | 439 | return 0; |
440 | } | 440 | } |
441 | 441 | ||