mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
add event direction to output
This commit is contained in:
parent
f449928806
commit
22c7f92135
@ -267,8 +267,15 @@ log_event(struct ipmi_event_intf * eintf, struct sel_event_record * evt)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case SDR_RECORD_TYPE_COMPACT_SENSOR:
|
case SDR_RECORD_TYPE_COMPACT_SENSOR:
|
||||||
|
if (evt->sel_type.standard_type.event_type == 0x6f) {
|
||||||
|
lprintf(LOG_NOTICE, "%s sensor %s - %s %s",
|
||||||
|
type, sdr->record.compact->id_string,
|
||||||
|
desc ? : "",
|
||||||
|
evt->sel_type.standard_type.event_dir ? "Deasserted" : "Asserted");
|
||||||
|
} else {
|
||||||
lprintf(LOG_NOTICE, "%s sensor %s - %s",
|
lprintf(LOG_NOTICE, "%s sensor %s - %s",
|
||||||
type, sdr->record.compact->id_string, desc ? : "");
|
type, sdr->record.compact->id_string, desc ? : "");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user