diff options
| author | Leo Yan <leo.yan@arm.com> | 2026-04-02 17:04:48 +0100 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-04-02 18:10:59 -0700 |
| commit | d148934beeacaf074e1e6f00fae3be737bbc4089 (patch) | |
| tree | eb04b5dd2abcc5b00fc1211ecf849cbb504f08e0 | |
| parent | 3a61fd866ef9aaa1d3158b460f852b74a2df07f4 (diff) | |
| download | linux-d148934beeacaf074e1e6f00fae3be737bbc4089.tar.gz linux-d148934beeacaf074e1e6f00fae3be737bbc4089.zip | |
perf expr: Add '\n' in literal parse errors
Add a trailing newline for logs.
Before:
perf stat -C 5
Failure to read '#slots'Cannot find metric or group `Default'
After:
perf stat -C 5
Failure to read '#slots'
Cannot find metric or group `Default'
Signed-off-by: Leo Yan <leo.yan@arm.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
| -rw-r--r-- | tools/perf/util/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/expr.c b/tools/perf/util/expr.c index b7664cb68554..644769e92708 100644 --- a/tools/perf/util/expr.c +++ b/tools/perf/util/expr.c @@ -407,9 +407,9 @@ double expr__get_literal(const char *literal, const struct expr_scanner_ctx *ctx &count)) result = count; else - pr_err("Failure to read '%s'", literal); + pr_err("Failure to read '%s'\n", literal); } else { - pr_err("Unrecognized literal '%s'", literal); + pr_err("Unrecognized literal '%s'\n", literal); } pr_debug2("literal: %s = %f\n", literal, result); |
