From 59b7d6cf8fc0ae666a0ccaf3650d6557361b7145 Mon Sep 17 00:00:00 2001 From: Alexander Amelkin Date: Wed, 7 Apr 2021 00:03:38 +0300 Subject: [PATCH] sel: Fix "power supply inactive" flag offset There was a wrong offset for the "Power Supply Inactive" flag, hence the trigger on this event type could not be set. Resolves ipmitool/ipmitool#280 Signed-off-by: Alexander Amelkin --- include/ipmitool/ipmi_sel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ipmitool/ipmi_sel.h b/include/ipmitool/ipmi_sel.h index 06ca507..8a5354f 100644 --- a/include/ipmitool/ipmi_sel.h +++ b/include/ipmitool/ipmi_sel.h @@ -256,7 +256,7 @@ static const struct ipmi_event_sensor_types sensor_specific_event_types[] = { { 0x08, 0x06, 0x03, "Config Error: Power Supply Rating Mismatch" }, { 0x08, 0x06, 0x04, "Config Error: Voltage Rating Mismatch" }, { 0x08, 0x06, 0xff, "Config Error" }, - { 0x08, 0x06, 0xff, "Power Supply Inactive" }, + { 0x08, 0x07, 0xff, "Power Supply Inactive" }, /* Power Unit */ { 0x09, 0x00, 0xff, "Power off/down" }, { 0x09, 0x01, 0xff, "Power cycle" },