X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fintel_rdt.c;h=38a6e931d409a30d7e04ff13b1ed841a8ff055a6;hp=b254ba78d0a20ed74f38e6f4ba3f69df3a512db8;hb=7111bb6df7628edce3a8e538b386fbe27633a191;hpb=bf0d5c93adbc022d3e5b3e691fb363a60f1c3a41 diff --git a/src/intel_rdt.c b/src/intel_rdt.c index b254ba78..38a6e931 100644 --- a/src/intel_rdt.c +++ b/src/intel_rdt.c @@ -1,7 +1,7 @@ /** * collectd - src/intel_rdt.c * - * Copyright(c) 2016 Intel Corporation. All rights reserved. + * Copyright(c) 2016-2018 Intel Corporation. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -25,8 +25,8 @@ * Serhiy Pshyk **/ -#include "common.h" #include "collectd.h" +#include "common.h" #include "utils_config_cores.h" @@ -183,7 +183,7 @@ static int rdt_config_cgroups(oconfig_item_t *item) { for (size_t group_idx = 0; group_idx < n; group_idx++) { core_group_t *cgroup = g_rdt->cores.cgroups + group_idx; for (size_t core_idx = 0; core_idx < cgroup->num_cores; core_idx++) { - if (!rdt_is_core_id_valid((int) cgroup->cores[core_idx])) { + if (!rdt_is_core_id_valid((int)cgroup->cores[core_idx])) { ERROR(RDT_PLUGIN ": Core group '%s' contains invalid core id '%d'", cgroup->desc, (int)cgroup->cores[core_idx]); rdt_free_cgroups(); @@ -200,7 +200,7 @@ static int rdt_config_cgroups(oconfig_item_t *item) { ERROR(RDT_PLUGIN ": Error creating default core groups configuration."); return ret; } - n = (size_t) ret; + n = (size_t)ret; INFO(RDT_PLUGIN ": No core groups configured. Default core groups created."); }