From 39408ea58977b9d71222059510b49ff62b14a774 Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Fri, 12 Apr 2013 13:11:26 +0000 Subject: [PATCH] ID: 3608763 - ipmi_sdr_print_type() print error if sensor not found 'sdr type ' - print error message if sensor of given type was not found. Commit for Dan Gora --- ipmitool/lib/ipmi_sdr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipmitool/lib/ipmi_sdr.c b/ipmitool/lib/ipmi_sdr.c index 59a027f..c2e97f6 100644 --- a/ipmitool/lib/ipmi_sdr.c +++ b/ipmitool/lib/ipmi_sdr.c @@ -4464,6 +4464,8 @@ ipmi_sdr_print_type(struct ipmi_intf *intf, char *type) } } if (sensor_type != x) { + lprintf(LOG_ERR, "Sensor Type \"%s\" not found.", + type); printf("Sensor Types:\n"); for (x = 1; x < SENSOR_TYPE_MAX; x += 2) { printf("\t%-25s (0x%02x) %-25s (0x%02x)\n",