summaryrefslogtreecommitdiff
path: root/Documentation/perf_counter/builtin-help.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-03-13 03:20:49 +0100
committerIngo Molnar <mingo@elte.hu>2009-06-06 14:41:49 +0200
commit502fc5c72a886ff9d4d7a596e65ecc4dd5e4d458 (patch)
treed7ea78d9f6360c10ee52202f45567611d2ca61c7 /Documentation/perf_counter/builtin-help.c
parent386b05e3a2f3c5b0a9c5575060421cca0911648a (diff)
downloadlwn-502fc5c72a886ff9d4d7a596e65ecc4dd5e4d458.tar.gz
lwn-502fc5c72a886ff9d4d7a596e65ecc4dd5e4d458.zip
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.c10
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)
longest = strlen(common_cmds[i].name);
}
- puts("The most commonly used perf commands are:");
+ puts(" The most commonly used perf commands are:");
for (i = 0; i < ARRAY_SIZE(common_cmds); i++) {
printf(" %s ", common_cmds[i].name);
mput_char(' ', longest - strlen(common_cmds[i].name));
@@ -426,16 +426,16 @@ int cmd_help(int argc, const char **argv, const char *prefix)
builtin_help_usage, 0);
if (show_all) {
- printf("usage: %s\n\n", perf_usage_string);
+ printf("\n usage: %s\n\n", perf_usage_string);
list_commands("perf commands", &main_cmds, &other_cmds);
- printf("%s\n", perf_more_info_string);
+ printf(" %s\n\n", perf_more_info_string);
return 0;
}
if (!argv[0]) {
- printf("usage: %s\n\n", perf_usage_string);
+ printf("\n usage: %s\n\n", perf_usage_string);
list_common_cmds_help();
- printf("\n%s\n", perf_more_info_string);
+ printf("\n %s\n\n", perf_more_info_string);
return 0;
}