Skip to content

Commit 6beb6cf

Browse files
captain5050acmel
authored andcommitted
perf parse-events: Minor help message improvements
Be more specific and fix a typo. Signed-off-by: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 196e355 commit 6beb6cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/perf/util/parse-events.y

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ PE_NAME opt_pmu_config
342342
struct parse_events_error *error = parse_state->error;
343343
char *help;
344344

345-
if (asprintf(&help, "Unabled to find PMU or event on a PMU of '%s'", $1) < 0)
345+
if (asprintf(&help, "Unable to find PMU or event on a PMU of '%s'", $1) < 0)
346346
help = NULL;
347347
parse_events_error__handle(error, @1.first_column,
348348
strdup("Bad event or PMU"),
@@ -368,7 +368,7 @@ PE_NAME sep_dc
368368
struct parse_events_error *error = parse_state->error;
369369
char *help;
370370

371-
if (asprintf(&help, "Unabled to find PMU or event on a PMU of '%s'", $1) < 0)
371+
if (asprintf(&help, "Unable to find event on a PMU of '%s'", $1) < 0)
372372
help = NULL;
373373
parse_events_error__handle(error, @1.first_column, strdup("Bad event name"), help);
374374
free($1);

0 commit comments

Comments
 (0)