X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fipmi.c;h=c8c80429d0813aa3ef7b2726a8d6d11373ca0d11;hp=ff79049b0693183484a8e968d6d44bcf4ee9a955;hb=e746ad785774de37a30302fef65f1c4aaf8698ab;hpb=f81a5a84d3d5fc941b624c28b1ab70971cc23ac9 diff --git a/src/ipmi.c b/src/ipmi.c index ff79049b..c8c80429 100644 --- a/src/ipmi.c +++ b/src/ipmi.c @@ -124,7 +124,7 @@ static void sensor_read_handler(ipmi_sensor_t *sensor, int err, sizeof(n.type_instance)); sstrncpy(n.type, list_item->sensor_type, sizeof(n.type)); snprintf(n.message, sizeof(n.message), "sensor %s not present", - list_item->sensor_name); + list_item->sensor_name); plugin_dispatch_notification(&n); } @@ -173,7 +173,7 @@ static void sensor_read_handler(ipmi_sensor_t *sensor, int err, sizeof(n.type_instance)); sstrncpy(n.type, list_item->sensor_type, sizeof(n.type)); snprintf(n.message, sizeof(n.message), "sensor %s present", - list_item->sensor_name); + list_item->sensor_name); plugin_dispatch_notification(&n); } @@ -224,7 +224,7 @@ static int sensor_list_add(ipmi_sensor_t *sensor) { sstrncpy(sensor_name, buffer, sizeof(sensor_name)); else snprintf(sensor_name, sizeof(sensor_name), "%s %s", buffer, - entity_id_string); + entity_id_string); sstrncpy(buffer, sensor_name, sizeof(buffer)); sensor_name_ptr = strstr(buffer, ")."); @@ -245,7 +245,7 @@ static int sensor_list_add(ipmi_sensor_t *sensor) { if (sensor_id_ptr != NULL) { /* `sensor_id_ptr' now points to "(123)". */ snprintf(sensor_name, sizeof(sensor_name), "%s %s", sensor_name_ptr, - sensor_id_ptr); + sensor_id_ptr); } /* else: don't touch sensor_name. */ } @@ -328,7 +328,7 @@ static int sensor_list_add(ipmi_sensor_t *sensor) { sstrncpy(n.type_instance, list_item->sensor_name, sizeof(n.type_instance)); sstrncpy(n.type, list_item->sensor_type, sizeof(n.type)); snprintf(n.message, sizeof(n.message), "sensor %s added", - list_item->sensor_name); + list_item->sensor_name); plugin_dispatch_notification(&n); } @@ -376,7 +376,7 @@ static int sensor_list_remove(ipmi_sensor_t *sensor) { sstrncpy(n.type_instance, list_item->sensor_name, sizeof(n.type_instance)); sstrncpy(n.type, list_item->sensor_type, sizeof(n.type)); snprintf(n.message, sizeof(n.message), "sensor %s removed", - list_item->sensor_name); + list_item->sensor_name); plugin_dispatch_notification(&n); }