- eMicThermalDie, eMicThermalDevMem, eMicThermalFin, eMicThermalFout,
- eMicThermalVccp, eMicThermalVddg, eMicThermalVddq };
-static char const * const therm_names[] = {
- "die", "devmem", "fin", "fout",
- "vccp", "vddg", "vddq" };
-
-static const char *config_keys[] =
-{
- "ShowCPU",
- "ShowCPUCores",
- "ShowMemory",
- "ShowTemperatures",
- "Temperature",
- "IgnoreSelectedTemperature",
- "ShowPower",
- "Power",
- "IgnoreSelectedPower"
-};
-static int config_keys_num = STATIC_ARRAY_SIZE (config_keys);
-
-static _Bool show_cpu = 1;
-static _Bool show_cpu_cores = 1;
-static _Bool show_memory = 1;
-static _Bool show_temps = 1;
-static ignorelist_t *temp_ignore = NULL;
-static _Bool show_power = 1;
-static ignorelist_t *power_ignore = NULL;
-
-static int mic_init (void)
-{
- U32 ret;
- U32 mic_count;
-
- if (mic_handle)
- return (0);
-
- mic_count = (U32) STATIC_ARRAY_SIZE(mics);
- ret = MicInitAPI(&mic_handle, eTARGET_SCIF_DRIVER, mics, &mic_count);
- if (ret != MIC_ACCESS_API_SUCCESS) {
- ERROR("mic plugin: Problem initializing MicAccessAPI: %s",
- MicGetErrorString(ret));
- }
- DEBUG("mic plugin: found: %"PRIu32" MIC(s)",mic_count);
-
- if (mic_count<0 || mic_count>=MAX_MICS) {
- ERROR("mic plugin: No Intel MICs in system");
- return (1);
- }
- else {
- num_mics = mic_count;
- return (0);
- }
+ eMicThermalDie, eMicThermalDevMem, eMicThermalFin, eMicThermalFout,
+ eMicThermalVccp, eMicThermalVddg, eMicThermalVddq};
+static char const *const therm_names[] = {"die", "devmem", "fin", "fout",
+ "vccp", "vddg", "vddq"};
+
+static const char *config_keys[] = {
+ "ShowCPU", "ShowCPUCores", "ShowMemory",
+ "ShowTemperatures", "Temperature", "IgnoreSelectedTemperature",
+ "ShowPower", "Power", "IgnoreSelectedPower"};
+static int config_keys_num = STATIC_ARRAY_SIZE(config_keys);
+
+static bool show_cpu = true;
+static bool show_cpu_cores = true;
+static bool show_memory = true;
+static bool show_temps = true;
+static ignorelist_t *temp_ignore;
+static bool show_power = true;
+static ignorelist_t *power_ignore;
+
+static int mic_init(void) {
+ U32 ret;
+ U32 mic_count;
+
+ if (mic_handle)
+ return 0;
+
+ mic_count = (U32)STATIC_ARRAY_SIZE(mics);
+ ret = MicInitAPI(&mic_handle, eTARGET_SCIF_DRIVER, mics, &mic_count);
+ if (ret != MIC_ACCESS_API_SUCCESS) {
+ ERROR("mic plugin: Problem initializing MicAccessAPI: %s",
+ MicGetErrorString(ret));
+ }
+ DEBUG("mic plugin: found: %" PRIu32 " MIC(s)", mic_count);
+
+ if (mic_count < 0 || mic_count >= MAX_MICS) {
+ ERROR("mic plugin: No Intel MICs in system");
+ return 1;
+ } else {
+ num_mics = mic_count;
+ return 0;
+ }