mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
ID:355 - Fix Enumeration value not handled in ipmi_get_event_desc()
Commit fixes ``Enumeration value not handled'' in ipmi_get_event_desc() by adding 'default' to the switch.
This commit is contained in:
parent
faae8fd247
commit
39fb1af285
@ -1235,6 +1235,8 @@ ipmi_get_event_desc(struct ipmi_intf * intf, struct sel_event_record * rec, char
|
|||||||
sfx = ipmi_get_oem_desc(intf, rec);
|
sfx = ipmi_get_oem_desc(intf, rec);
|
||||||
break;
|
break;
|
||||||
/* add your oem sensor assignation here */
|
/* add your oem sensor assignation here */
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
if( evt == NULL ){
|
if( evt == NULL ){
|
||||||
lprintf(LOG_DEBUG, "oem sensor type %x using standard type supplied description",
|
lprintf(LOG_DEBUG, "oem sensor type %x using standard type supplied description",
|
||||||
@ -1248,6 +1250,8 @@ ipmi_get_event_desc(struct ipmi_intf * intf, struct sel_event_record * rec, char
|
|||||||
code = rec->sel_type.standard_type.sensor_type;
|
code = rec->sel_type.standard_type.sensor_type;
|
||||||
sfx = ipmi_get_oem_desc(intf, rec);
|
sfx = ipmi_get_oem_desc(intf, rec);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if( evt == NULL ){
|
if( evt == NULL ){
|
||||||
@ -1916,6 +1920,8 @@ ipmi_sel_print_std_entry(struct ipmi_intf * intf, struct sel_event_record * evt)
|
|||||||
case IPMI_OEM_SUPERMICRO_47488:
|
case IPMI_OEM_SUPERMICRO_47488:
|
||||||
print_sensor = 0;
|
print_sensor = 0;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Sensor-Specific Discrete
|
* Sensor-Specific Discrete
|
||||||
|
Loading…
x
Reference in New Issue
Block a user