X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fintel_rdt.c;h=3d4c988928553bad08a1c523fc606ea9b5e53e89;hp=a3f77c97d6cdc72fd28dc0bf84bc0531844ecdbf;hb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4;hpb=8fd8f76dc11064e75e44448d16d35e09e46191a2 diff --git a/src/intel_rdt.c b/src/intel_rdt.c index a3f77c97..3d4c9889 100644 --- a/src/intel_rdt.c +++ b/src/intel_rdt.c @@ -25,8 +25,8 @@ * Serhiy Pshyk **/ -#include "common.h" #include "collectd.h" +#include "common.h" #include @@ -59,7 +59,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; @@ -308,7 +308,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++) { @@ -426,8 +426,8 @@ static int rdt_config_cgroups(oconfig_item_t *item) { core_idx++) { if (!rdt_is_core_id_valid(g_rdt->cgroups[group_idx].cores[core_idx])) { ERROR(RDT_PLUGIN ": Core group '%s' contains invalid core id '%d'", - g_rdt->cgroups[group_idx].desc, - (int)g_rdt->cgroups[group_idx].cores[core_idx]); + g_rdt->cgroups[group_idx].desc, + (int)g_rdt->cgroups[group_idx].cores[core_idx]); rdt_free_cgroups(); return -EINVAL; }