perf evsel: Fix printing of perf_event_paranoid message
authorDavid Ahern <dsahern@gmail.com>
Sat, 25 May 2013 23:54:00 +0000 (17:54 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 28 May 2013 13:24:03 +0000 (16:24 +0300)
commitb69e63a45f2d96a0dfe930ed20385058d4574d2f
treec3c2e0dba51a08008e75a4044778a9187d070a95
parentffcbaa1490ab0efcb7bff684f9abd04b91e34221
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>
tools/perf/util/evsel.c