[PATCH v1 1/3] perf parse-events: Minor help message improvements
From: Ian Rogers
Date: Wed Aug 30 2023 - 15:08:10 EST
Be more specific and fix a typo.
Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
---
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 3a9d4e2513b5..4a370c36a0d5 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.42.0.rc2.253.gd59a3bf2b4-goog