From: Duncan L. <ice...@us...> - 2005-05-15 06:23:58
|
Update of /cvsroot/ipmitool/ipmitool/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3398/lib Modified Files: ipmi_sel.c Log Message: broke fru lookups for 'sel get' command Index: ipmi_sel.c =================================================================== RCS file: /cvsroot/ipmitool/ipmitool/lib/ipmi_sel.c,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** ipmi_sel.c 15 May 2005 05:57:35 -0000 1.40 --- ipmi_sel.c 15 May 2005 06:23:50 -0000 1.41 *************** *** 1097,1101 **** oldv = verbose; verbose = verbose ? : 1; ! ipmi_sdr_print_listentry(intf, sdr); verbose = oldv; --- 1097,1120 ---- oldv = verbose; verbose = verbose ? : 1; ! switch (sdr->type) { ! case SDR_RECORD_TYPE_FULL_SENSOR: ! ipmi_sensor_print_full(intf, sdr->record.full); ! entity.id = sdr->record.full->entity.id; ! entity.instance = sdr->record.full->entity.instance; ! break; ! case SDR_RECORD_TYPE_COMPACT_SENSOR: ! ipmi_sensor_print_compact(intf, sdr->record.compact); ! entity.id = sdr->record.compact->entity.id; ! entity.instance = sdr->record.compact->entity.instance; ! break; ! case SDR_RECORD_TYPE_EVENTONLY_SENSOR: ! ipmi_sdr_print_sensor_eventonly(intf, sdr->record.eventonly); ! entity.id = sdr->record.eventonly->entity.id; ! entity.instance = sdr->record.eventonly->entity.instance; ! break; ! default: ! verbose = oldv; ! continue; ! } verbose = oldv; |