diff --git a/pyghmi/ipmi/events.py b/pyghmi/ipmi/events.py index 2df47954..fde1b93c 100644 --- a/pyghmi/ipmi/events.py +++ b/pyghmi/ipmi/events.py @@ -123,6 +123,7 @@ slot_types = { 9: 'PCIe', 10: 'SCSI', 11: 'SATA/SAS', + 12: 'USB', } power_states = { @@ -251,7 +252,7 @@ def decode_eventdata(sensor_type, offset, eventdata, sdr): return 'Requested {0] while {1}'.format(eventdata[1], eventdata[2]) elif sensor_type == 0x1d and offset == 7: return restart_causes.get(eventdata[1], 'Unknown') - elif sensor_type == 0x21 and offset == 0x9: + elif sensor_type == 0x21: return '{0} {1}'.format(slot_types.get(eventdata[1], 'Unknown'), eventdata[2])