• Yang Jihong's avatar
    perf tools: Fix usage of the verbose variable · 7c0a6144
    Yang Jihong authored
    
    
    The data type of the verbose variable is integer and can be negative,
    replace improperly used cases in a unified manner:
     1. if (verbose)        => if (verbose > 0)
     2. if (!verbose)       => if (verbose <= 0)
     3. if (XX && verbose)  => if (XX && verbose > 0)
     4. if (XX && !verbose) => if (XX && verbose <= 0)
    Reviewed-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
    Signed-off-by: default avatarYang Jihong <yangjihong1@huawei.com>
    Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
    Cc: Andi Kleen <ak@linux.intel.com>
    Cc: Carsten Haitzler <carsten.haitzler@arm.com>
    Cc: Ian Rogers <irogers@google.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Jiri Olsa <jolsa@kernel.org>
    Cc: Leo Yan <leo.yan@linaro.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Martin KaFai Lau <martin.lau@kernel.org>
    Cc: Masami Hiramatsu <mhiramat@kernel.org>
    Cc: Namhyung Kim <namhyung@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Ravi Bangoria <ravi.bangoria@amd.com>
    Link: https://lore.kernel...
    7c0a6144
builtin-stat.c 73.1 KB