From: Florian Forster Date: Mon, 22 Jan 2024 19:45:44 +0000 (+0100) Subject: intel_pmu plugin: Fix formatting of `counter_t` values. X-Git-Tag: 6.0.0-rc0~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e5ff02a3f70183679f74a90c7995cc4736a88ca;p=thirdparty%2Fcollectd.git intel_pmu plugin: Fix formatting of `counter_t` values. --- 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); }