]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
intel_pmu plugin: Fix formatting of `counter_t` values. 4198/head
authorFlorian Forster <octo@collectd.org>
Mon, 22 Jan 2024 19:45:44 +0000 (20:45 +0100)
committerFlorian Forster <octo@collectd.org>
Mon, 22 Jan 2024 20:22:04 +0000 (21:22 +0100)
src/intel_pmu.c

index aa8c4e63d8239599e841e287994aecb9fdb0fd11..a30cbe511e92b22fbd662c76e391e643d75d880d 100644 (file)
@@ -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);
 }