perf parse-events: Use 'unsigned int' instead of plain 'unsigned'.
authorXin Gao <gaoxin@cdjrlc.com>
Tue, 16 Aug 2022 17:41:09 +0000 (01:41 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 4 Oct 2022 11:55:19 +0000 (08:55 -0300)
'unsigned int' should be clearer than 'unsigned'.

Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220816174109.7718-1-gaoxin@cdjrlc.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/pmu.c

index 89655d5..74a2caf 100644 (file)
@@ -1182,7 +1182,7 @@ static char *pmu_formats_string(struct list_head *formats)
        struct perf_pmu_format *format;
        char *str = NULL;
        struct strbuf buf = STRBUF_INIT;
-       unsigned i = 0;
+       unsigned int i = 0;
 
        if (!formats)
                return NULL;