From 6beb6cfddff98cb53e01c0bebb0da8030506fb76 Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Wed, 30 Aug 2023 00:07:51 -0700 Subject: [PATCH] perf parse-events: Minor help message improvements Be more specific and fix a typo. Signed-off-by: Ian Rogers Cc: Adrian Hunter Cc: Alexander Shishkin Cc: James Clark Cc: Jiri Olsa Cc: Kan Liang Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lore.kernel.org/lkml/20230830070753.1821629-1-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/parse-events.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/parse-events.y b/tools/perf/util/parse-events.y index 3a9d4e2..4a370c3 100644 --- a/tools/perf/util/parse-events.y +++ b/tools/perf/util/parse-events.y @@ -342,7 +342,7 @@ PE_NAME opt_pmu_config struct parse_events_error *error = parse_state->error; char *help; - if (asprintf(&help, "Unabled to find PMU or event on a PMU of '%s'", $1) < 0) + if (asprintf(&help, "Unable to find PMU or event on a PMU of '%s'", $1) < 0) help = NULL; parse_events_error__handle(error, @1.first_column, strdup("Bad event or PMU"), @@ -368,7 +368,7 @@ PE_NAME sep_dc struct parse_events_error *error = parse_state->error; char *help; - if (asprintf(&help, "Unabled to find PMU or event on a PMU of '%s'", $1) < 0) + if (asprintf(&help, "Unable to find event on a PMU of '%s'", $1) < 0) help = NULL; parse_events_error__handle(error, @1.first_column, strdup("Bad event name"), help); free($1); -- 2.7.4