mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 02:01:18 -04:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user