- sensor_type = ipmi_sensor_get_sensor_type (sensor);
- switch (sensor_type)
- {
- case IPMI_SENSOR_TYPE_TEMPERATURE:
- type = "temperature";
- break;
-
- case IPMI_SENSOR_TYPE_VOLTAGE:
- type = "voltage";
- break;
-
- case IPMI_SENSOR_TYPE_CURRENT:
- type = "current";
- break;
-
- case IPMI_SENSOR_TYPE_FAN:
- type = "fanspeed";
- break;
-
- default:
- {
- const char *sensor_type_str;
-
- sensor_type_str = ipmi_sensor_get_sensor_type_string (sensor);
- INFO ("ipmi plugin: sensor_list_add: Ignore sensor %s, "
- "because I don't know how to handle its type (%#x, %s). "
- "If you need this sensor, please file a bug report.",
- sensor_name_ptr, sensor_type, sensor_type_str);
- return (-1);
- }
+ sensor_type = ipmi_sensor_get_sensor_type(sensor);
+ switch (sensor_type) {
+ case IPMI_SENSOR_TYPE_TEMPERATURE:
+ type = "temperature";
+ break;
+
+ case IPMI_SENSOR_TYPE_VOLTAGE:
+ type = "voltage";
+ break;
+
+ case IPMI_SENSOR_TYPE_CURRENT:
+ type = "current";
+ break;
+
+ case IPMI_SENSOR_TYPE_FAN:
+ type = "fanspeed";
+ break;
+
+ default: {
+ const char *sensor_type_str;
+
+ sensor_type_str = ipmi_sensor_get_sensor_type_string(sensor);
+ INFO("ipmi plugin: sensor_list_add: Ignore sensor %s, "
+ "because I don't know how to handle its type (%#x, %s). "
+ "If you need this sensor, please file a bug report.",
+ sensor_name_ptr, sensor_type, sensor_type_str);
+ return -1;
+ }