diff options
Diffstat (limited to 'tools/perf/builtin-help.c')
-rw-r--r-- | tools/perf/builtin-help.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/builtin-help.c b/tools/perf/builtin-help.c index bd1fedef3d1c..a0f7ed2b869b 100644 --- a/tools/perf/builtin-help.c +++ b/tools/perf/builtin-help.c | |||
@@ -284,7 +284,7 @@ static int perf_help_config(const char *var, const char *value, void *cb) | |||
284 | add_man_viewer(value); | 284 | add_man_viewer(value); |
285 | return 0; | 285 | return 0; |
286 | } | 286 | } |
287 | if (!strstarts(var, "man.")) | 287 | if (strstarts(var, "man.")) |
288 | return add_man_viewer_info(var, value); | 288 | return add_man_viewer_info(var, value); |
289 | 289 | ||
290 | return 0; | 290 | return 0; |
@@ -314,7 +314,7 @@ static const char *cmd_to_page(const char *perf_cmd) | |||
314 | 314 | ||
315 | if (!perf_cmd) | 315 | if (!perf_cmd) |
316 | return "perf"; | 316 | return "perf"; |
317 | else if (!strstarts(perf_cmd, "perf")) | 317 | else if (strstarts(perf_cmd, "perf")) |
318 | return perf_cmd; | 318 | return perf_cmd; |
319 | 319 | ||
320 | return asprintf(&s, "perf-%s", perf_cmd) < 0 ? NULL : s; | 320 | return asprintf(&s, "perf-%s", perf_cmd) < 0 ? NULL : s; |