diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2019-12-08 22:23:02 +1000 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-12-16 14:50:56 +1100 |
commit | 4ec92ececc15ac27f2837e41eae8a6e5431578e8 (patch) | |
tree | 51019be813ade0070ea9095e58d8b879d63e3871 /include | |
parent | e3934d8c3f948300d346902467a8862a701a00bf (diff) | |
download | skiboot-4ec92ececc15ac27f2837e41eae8a6e5431578e8.zip skiboot-4ec92ececc15ac27f2837e41eae8a6e5431578e8.tar.gz skiboot-4ec92ececc15ac27f2837e41eae8a6e5431578e8.tar.bz2 |
errorlog: endian conversion
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/errorlog.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/errorlog.h b/include/errorlog.h index 3fd475c..a01ab97 100644 --- a/include/errorlog.h +++ b/include/errorlog.h @@ -94,19 +94,19 @@ #define ORG_POWERNV 2 /* Multiple user data sections */ -struct __attribute__((__packed__))elog_user_data_section { - uint32_t tag; - uint16_t size; - uint16_t component_id; +struct elog_user_data_section { + __be32 tag; + __be16 size; + __be16 component_id; char data_dump[1]; -}; +} __packed; /* * All the information regarding an error/event to be reported * needs to populate this structure using pre-defined interfaces * only */ -struct __attribute__((__packed__)) __attribute__ ((aligned (8))) errorlog { +struct errorlog { uint16_t component_id; uint8_t error_event_type; |