* [PATCH][next] perf-tools: Fix spelling mistake "lenght" -> "length"
@ 2022-12-30 23:32 Colin Ian King
0 siblings, 0 replies; only message in thread
From: Colin Ian King @ 2022-12-30 23:32 UTC (permalink / raw)
To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
Mark Rutland, Alexander Shishkin, Jiri Olsa, Namhyung Kim,
linux-perf-users
Cc: kernel-janitors, linux-kernel
There is a spelling mistake in the variable expansion_lenght. Fix it.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
tools/perf/builtin-trace.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index 86e06f136f40..ccd7923ae802 100644
--- a/tools/perf/builtin-trace.c
+++ b/tools/perf/builtin-trace.c
@@ -3784,7 +3784,7 @@ static int trace__expand_filter(struct trace *trace __maybe_unused, struct evsel
if (fmt->strtoul(right, right_size, &syscall_arg, &val)) {
char *n, expansion[19];
- int expansion_lenght = scnprintf(expansion, sizeof(expansion), "%#" PRIx64, val);
+ int expansion_length = scnprintf(expansion, sizeof(expansion), "%#" PRIx64, val);
int expansion_offset = right - new_filter;
pr_debug("%s", expansion);
@@ -3796,7 +3796,7 @@ static int trace__expand_filter(struct trace *trace __maybe_unused, struct evsel
}
if (new_filter != evsel->filter)
free(new_filter);
- left = n + expansion_offset + expansion_lenght;
+ left = n + expansion_offset + expansion_length;
new_filter = n;
} else {
pr_err("\"%.*s\" not found for \"%s\" in \"%s\", can't set filter \"%s\"\n",
--
2.30.2
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-30 23:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-30 23:32 [PATCH][next] perf-tools: Fix spelling mistake "lenght" -> "length" Colin Ian King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).