lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sun, 1 May 2016 00:38:07 -0700 From: tip-bot for Arnaldo Carvalho de Melo <tipbot@...or.com> To: linux-tip-commits@...r.kernel.org Cc: mingo@...nel.org, linux-kernel@...r.kernel.org, namhyung@...nel.org, tglx@...utronix.de, hpa@...or.com, milian.wolff@...b.com, acme@...hat.com, jolsa@...nel.org, adrian.hunter@...el.com, dsahern@...il.com, wangnan0@...wei.com Subject: [tip:perf/core] perf evsel: Remove two extraneous ending newlines in open_strerror() Commit-ID: 81d64f46d41c428474c64e5c59e5458b7f50d9fd Gitweb: http://git.kernel.org/tip/81d64f46d41c428474c64e5c59e5458b7f50d9fd Author: Arnaldo Carvalho de Melo <acme@...hat.com> AuthorDate: Wed, 27 Apr 2016 17:56:53 -0300 Committer: Arnaldo Carvalho de Melo <acme@...hat.com> CommitDate: Thu, 28 Apr 2016 09:58:58 -0300 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 <adrian.hunter@...el.com> Cc: David Ahern <dsahern@...il.com> Cc: Jiri Olsa <jolsa@...nel.org> Cc: Milian Wolff <milian.wolff@...b.com> Cc: Namhyung Kim <namhyung@...nel.org> Cc: Wang Nan <wangnan0@...wei.com> Link: http://lkml.kernel.org/n/tip-8af0pazzhzl3dluuh8p7ar7p@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com> --- tools/perf/util/evsel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 9bed7f4..3371721 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -2336,7 +2336,7 @@ int perf_evsel__open_strerror(struct perf_evsel *evsel, struct target *target, case ENODEV: if (target->cpu_list) return scnprintf(msg, size, "%s", - "No such device - did you specify an out-of-range profile CPU?\n"); + "No such device - did you specify an out-of-range profile CPU?"); break; case EOPNOTSUPP: if (evsel->attr.precise_ip) @@ -2368,7 +2368,7 @@ int perf_evsel__open_strerror(struct perf_evsel *evsel, struct target *target, return scnprintf(msg, size, "The sys_perf_event_open() syscall returned with %d (%s) for event (%s).\n" "/bin/dmesg may provide additional information.\n" - "No CONFIG_PERF_EVENTS=y kernel support configured?\n", + "No CONFIG_PERF_EVENTS=y kernel support configured?", err, strerror_r(err, sbuf, sizeof(sbuf)), perf_evsel__name(evsel)); }
Powered by blists - more mailing lists