X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fintel_rdt.c;h=684e2b6dfd57524368d3603f3d7bc41c624c93f0;hb=07ba05937aeaedd683656c3912040950dbf4a152;hp=38a6e931d409a30d7e04ff13b1ed841a8ff055a6;hpb=753955ef2710a741881d25e9247217a56e6d726d;p=collectd.git diff --git a/src/intel_rdt.c b/src/intel_rdt.c index 38a6e931..684e2b6d 100644 --- a/src/intel_rdt.c +++ b/src/intel_rdt.c @@ -25,10 +25,9 @@ * Serhiy Pshyk **/ -#include "collectd.h" #include "common.h" - #include "utils_config_cores.h" +#include "collectd.h" #include @@ -54,7 +53,7 @@ struct rdt_ctx_s { }; typedef struct rdt_ctx_s rdt_ctx_t; -static rdt_ctx_t *g_rdt = NULL; +static rdt_ctx_t *g_rdt; static rdt_config_status g_state = UNKNOWN; @@ -66,7 +65,7 @@ static void rdt_dump_cgroups(void) { return; DEBUG(RDT_PLUGIN ": Core Groups Dump"); - DEBUG(RDT_PLUGIN ": groups count: %zu", g_rdt->num_groups); + DEBUG(RDT_PLUGIN ": groups count: %" PRIsz, g_rdt->num_groups); for (int i = 0; i < g_rdt->num_groups; i++) { core_group_t *cgroup = g_rdt->cores.cgroups + i;