diff options
author | Darren Kastelic <darren.kastelic@calxeda.com> | 2013-07-01 22:55:56 -0500 |
---|---|---|
committer | Darren Kastelic <darren.kastelic@calxeda.com> | 2013-07-01 23:01:58 -0500 |
commit | b7c06d2d0bfefbc09a3a0f7c8f7f012397e5ac0b (patch) | |
tree | 074ce98c505becc3976434a0aa69564d68cd783a | |
parent | 51279da05931505f03c41efb2c9405c9601e10ec (diff) | |
download | ipmitool-b7c06d2d0bfefbc09a3a0f7c8f7f012397e5ac0b.tar.gz |
sel elist: fix list for threshold deasserts
Greater than and less than signs should be opposite in the deassert
case from the assert case.
-rw-r--r-- | lib/ipmi_sel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ipmi_sel.c b/lib/ipmi_sel.c index ca53603..ee59fe9 100644 --- a/lib/ipmi_sel.c +++ b/lib/ipmi_sel.c @@ -1115,7 +1115,9 @@ ipmi_sel_print_std_entry(struct ipmi_intf * intf, struct sel_event_record * evt) printf("Reading %.*f %s Threshold %.*f %s", (trigger_reading==(int)trigger_reading) ? 0 : 2, trigger_reading, - ((evt->sel_type.standard_type.event_data[0] & 0xf) % 2) ? ">" : "<", + (((evt->sel_type.standard_type.event_data[0] & 0xf) % 2) + ^ evt->sel_type.standard_type.event_dir) + ? ">" : "<", (threshold_reading==(int)threshold_reading) ? 0 : 2, threshold_reading, ipmi_sdr_get_unit_string(sdr->record.full->unit.modifier, |