summaryrefslogtreecommitdiffstats
path: root/collectors/perf.plugin
diff options
context:
space:
mode:
authorAdrien Mahieux <adrien.mahieux@gmail.com>2020-10-22 12:12:08 +0200
committerGitHub <noreply@github.com>2020-10-22 13:12:08 +0300
commitc4923783ed130c923e780d08ea8c507311a76aad (patch)
tree783661309b740d13033aa25b44b40fddf863f412 /collectors/perf.plugin
parent9dd503dcd92aba102b1d390e7aed652c7f76e5d7 (diff)
Fix platform dependent printf format (#10120)
Diffstat (limited to 'collectors/perf.plugin')
-rw-r--r--collectors/perf.plugin/perf_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/perf.plugin/perf_plugin.c b/collectors/perf.plugin/perf_plugin.c
index c645c2798f..9fe3c5e079 100644
--- a/collectors/perf.plugin/perf_plugin.c
+++ b/collectors/perf.plugin/perf_plugin.c
@@ -422,7 +422,7 @@ static int perf_collect() {
}
}
- if(unlikely(debug)) fprintf(stderr, "perf.plugin: successfully read event id = %u, value = %lu\n", current_event->id, current_event->value);
+ if(unlikely(debug)) fprintf(stderr, "perf.plugin: successfully read event id = %u, value = %"PRIu64"\n", current_event->id, current_event->value);
}
if(unlikely(perf_events[EV_ID_CPU_CYCLES].value == prev_cpu_cycles_value))