Remove bitfields from the SEL record structures
Bitfields are not endian-safe, so this change removes the
bitfields from the SEL record structures and defines the
event direction as an offset.
Tested:
Confirmed that SEL events are still added and listed with the
correct assertion state.
Change-Id: I4b7428d28b2738f729612e6d793a61694853f89a
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/include/storagecommands.hpp b/include/storagecommands.hpp
index 946161b..3f7c401 100644
--- a/include/storagecommands.hpp
+++ b/include/storagecommands.hpp
@@ -119,8 +119,7 @@
uint8_t eventMsgRevision;
uint8_t sensorType;
uint8_t sensorNum;
- uint8_t eventType : 7;
- uint8_t eventDir : 1;
+ uint8_t eventType;
uint8_t eventData[intel_oem::ipmi::sel::systemEventSize];
} system;
struct
@@ -148,8 +147,7 @@
uint8_t eventMsgRevision;
uint8_t sensorType;
uint8_t sensorNum;
- uint8_t eventType : 7;
- uint8_t eventDir : 1;
+ uint8_t eventType;
uint8_t eventData[intel_oem::ipmi::sel::systemEventSize];
} system;
struct