perf evsel: Fix format string in perf_evsel__open_strerror()
Namhyung Kim
maintainerPATCH 1/1 perf evsel: Fix format string in perf_evsel__open_strerror()
From: Namhyung Kim <[email protected]>
In case of EPERM or EACCESS, there was a debious "%s" before actual string so that an user would see "You may not have permission to collect %sstats." instead of "You may not ... system-wide stats.".
Signed-off-by Namhyung Kim <[email protected]>
--- tools/perf/util/evsel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/util/evsel.c +1 -1
@@ -1495,7 +1495,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"
Signature · 1 line
1.7.11.7