X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fintel_rdt.c;h=29c02fe58587cc04d83d72f4dc74e6318e750c36;hp=5eabdb301ed9b34fd5cb8ec0cb27db8e083c79d2;hb=a9e50e9e30ecde17e167e271060c8183bfcbf407;hpb=7f38ca96e3a54a4b02475f857c7d79c6a1257ada diff --git a/src/intel_rdt.c b/src/intel_rdt.c index 5eabdb30..29c02fe5 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 @@ -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; } @@ -656,7 +656,7 @@ static int rdt_read(__attribute__((unused)) user_data_t *ud) { static int rdt_init(void) { int ret; - if(g_state == CONFIGURATION_ERROR) + if (g_state == CONFIGURATION_ERROR) return -1; ret = rdt_preinit();