Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf dlfilter dlfilter-show-cycles: Fix types for print format

Avoid compiler warning about format %llu that expects long long unsigned
int but argument has type __u64.

Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Fixes: c3afd6e50fce824f ("perf dlfilter: Add dlfilter-show-cycles")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20220905074735.4513-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Adrian Hunter and committed by
Arnaldo Carvalho de Melo
1706623e 7864d8f7

+2 -2
+2 -2
tools/perf/dlfilters/dlfilter-show-cycles.c
··· 98 98 static void print_vals(__u64 cycles, __u64 delta) 99 99 { 100 100 if (delta) 101 - printf("%10llu %10llu ", cycles, delta); 101 + printf("%10llu %10llu ", (unsigned long long)cycles, (unsigned long long)delta); 102 102 else 103 - printf("%10llu %10s ", cycles, ""); 103 + printf("%10llu %10s ", (unsigned long long)cycles, ""); 104 104 } 105 105 106 106 int filter_event(void *data, const struct perf_dlfilter_sample *sample, void *ctx)