From 6e5ff02a3f70183679f74a90c7995cc4736a88ca Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 22 Jan 2024 20:45:44 +0100 Subject: [PATCH] intel_pmu plugin: Fix formatting of `counter_t` values. --- src/intel_pmu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/intel_pmu.c b/src/intel_pmu.c index aa8c4e63d..a30cbe511 100644 --- a/src/intel_pmu.c +++ b/src/intel_pmu.c @@ -292,8 +292,9 @@ static void pmu_submit_counters(const char *cgroup, const char *event, sstrncpy(vl.type, "pmu_counter", sizeof(vl.type)); sstrncpy(vl.type_instance, event, sizeof(vl.type_instance)); - DEBUG(PMU_PLUGIN ": %s/%s = %llu (%llu * %llu / %llu)", vl.type_instance, - vl.plugin_instance, scaled, raw, enabled, running); + DEBUG(PMU_PLUGIN ": %s/%s = %" PRIu64 " (%" PRIu64 " * %" PRIu64 " / %" PRIu64 + ")", + vl.type_instance, vl.plugin_instance, scaled, raw, enabled, running); plugin_dispatch_values(&vl); } -- 2.47.2