Re: [Ipmitool-devel] Design question about sensor command

2007-11-04 Thread Liebig, Holger
> > The sdr command uses ipmi_sdr_get_sensor_reading to read the > sensor readings, but the sensor command uses > ipmi_sdr_get_sensor_reading_ipmb to do the same function. > Changing the ipmi_sdr_get_sensor_reading_ipmb calls to > ipmi_sdr_get_sensor_reading calls fixes the problem for me, > so I

[Ipmitool-devel] [PATCH] fix infinite loop in sdr/sel

2007-11-04 Thread Dan Aloni
This patch fixes an infinite loop that was observed with a buggy BMC that has an empty SDR. The loop occured inside ipmi_sdr_find_sdr_bynumtype(). diff --git a/lib/ipmi_sdr.c b/lib/ipmi_sdr.c index 950c5c9..dd28fe9 100644 --- a/lib/ipmi_sdr.c +++ b/lib/ipmi_sdr.c @@ -664,6 +664,9 @@ ipmi_sdr_get_