diff options
author | David Ahern <dsahern@gmail.com> | 2013-05-25 17:54:00 -0600 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2014-05-15 07:20:33 +0200 |
commit | 3acf4a45531406f6259a7382fb5cd1661bf5c1eb (patch) | |
tree | 5c1567eb0f06161236efe4288f2ae10e455709ed /tools | |
parent | 26562ad9f8c0ae00b410ef8a9b95ea18567d17fe (diff) | |
download | linux-3.10-3acf4a45531406f6259a7382fb5cd1661bf5c1eb.tar.gz linux-3.10-3acf4a45531406f6259a7382fb5cd1661bf5c1eb.tar.bz2 linux-3.10-3acf4a45531406f6259a7382fb5cd1661bf5c1eb.zip |
perf evsel: Fix printing of perf_event_paranoid message
message is currently shown as:
Error:
You may not have permission to collect %sstats.
Consider tweaking /proc/sys/kernel/perf_event_paranoid:
Note the %sstats. With patch this becomes:
Error:
You may not have permission to collect stats.
Consider tweaking /proc/sys/kernel/perf_event_paranoid:
Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1369526040-1368-1-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/evsel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 07b1a3ad3e2..63b6f8c8edf 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c @@ -1514,7 +1514,7 @@ int perf_evsel__open_strerror(struct perf_evsel *evsel, switch (err) { case EPERM: case EACCES: - return scnprintf(msg, size, "%s", + return scnprintf(msg, size, "You may not have permission to collect %sstats.\n" "Consider tweaking /proc/sys/kernel/perf_event_paranoid:\n" " -1 - Not paranoid at all\n" |