Skip to content

Commit 81d64f4

Browse files
committed
perf evsel: Remove two extraneous ending newlines in open_strerror()
The error messages returned by this method should not have an ending newline, fix the two cases where it was. Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Milian Wolff <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent de46d52 commit 81d64f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/perf/util/evsel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2336,7 +2336,7 @@ int perf_evsel__open_strerror(struct perf_evsel *evsel, struct target *target,
23362336
case ENODEV:
23372337
if (target->cpu_list)
23382338
return scnprintf(msg, size, "%s",
2339-
"No such device - did you specify an out-of-range profile CPU?\n");
2339+
"No such device - did you specify an out-of-range profile CPU?");
23402340
break;
23412341
case EOPNOTSUPP:
23422342
if (evsel->attr.precise_ip)
@@ -2368,7 +2368,7 @@ int perf_evsel__open_strerror(struct perf_evsel *evsel, struct target *target,
23682368
return scnprintf(msg, size,
23692369
"The sys_perf_event_open() syscall returned with %d (%s) for event (%s).\n"
23702370
"/bin/dmesg may provide additional information.\n"
2371-
"No CONFIG_PERF_EVENTS=y kernel support configured?\n",
2371+
"No CONFIG_PERF_EVENTS=y kernel support configured?",
23722372
err, strerror_r(err, sbuf, sizeof(sbuf)),
23732373
perf_evsel__name(evsel));
23742374
}

0 commit comments

Comments
 (0)