From 3d5a504a44fe11fbd5141f3987b097d69983db1e Mon Sep 17 00:00:00 2001 From: "Mytnyk, Volodymyr" Date: Tue, 17 Oct 2017 10:26:58 +0100 Subject: [PATCH] ipmi: make unhandled sensor msg more informative Change-Id: I5fc6056b2d0c5bb5cb1b28c3d24aaca163eb245b Signed-off-by: Mytnyk, Volodymyr --- src/ipmi.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ipmi.c b/src/ipmi.c index 22aff82c..f28ac52c 100644 --- a/src/ipmi.c +++ b/src/ipmi.c @@ -449,9 +449,12 @@ static int sensor_list_add(c_ipmi_instance_t *st, ipmi_sensor_t *sensor) { break; INFO("ipmi plugin: sensor_list_add: Ignore sensor `%s` of `%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, st->name, sensor_type, + "because I don't know how to handle its units (%#x, %#x, %#x). " + "Sensor type: (%#x, %s). If you need this sensor, please file " + "a bug report at http://collectd.org/.", + sensor_name_ptr, st->name, ipmi_sensor_get_base_unit(sensor), + ipmi_sensor_get_modifier_unit(sensor), + ipmi_sensor_get_rate_unit(sensor), sensor_type, ipmi_sensor_get_sensor_type_string(sensor)); return -1; } -- 2.11.0