mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 02:52:27 -04:00
perf utils: Check verbose flag properly
It now can have negative value to suppress the message entirely. So it needs to check it being positive. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: kernel-team@lge.com Link: http://lkml.kernel.org/r/20170217081742.17417-3-namhyung@kernel.org [ Adjust fuzz on tools/perf/util/pmu.c, add > 0 checks in many other places ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
80df198820
commit
bb963e1650
@@ -19,7 +19,7 @@ static int fdarray__fprintf_prefix(struct fdarray *fda, const char *prefix, FILE
|
||||
{
|
||||
int printed = 0;
|
||||
|
||||
if (!verbose)
|
||||
if (verbose <= 0)
|
||||
return 0;
|
||||
|
||||
printed += fprintf(fp, "\n%s: ", prefix);
|
||||
|
||||
Reference in New Issue
Block a user