[Skiboot] [PATCH v5 17/27] ipmi: endian conversion

Nicholas Piggin npiggin at gmail.com
Tue Oct 15 14:07:07 AEDT 2019


Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
 hw/ipmi/ipmi-sel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/ipmi/ipmi-sel.c b/hw/ipmi/ipmi-sel.c
index 794aa3801..a774fb401 100644
--- a/hw/ipmi/ipmi-sel.c
+++ b/hw/ipmi/ipmi-sel.c
@@ -192,7 +192,7 @@ static void ipmi_init_esel_record(void)
 {
 	memset(&sel_record, 0, sizeof(struct sel_record));
 	sel_record.record_type = SEL_REC_TYPE_AMI_ESEL;
-	sel_record.generator_id = SEL_GENERATOR_ID_AMI;
+	sel_record.generator_id = cpu_to_le16(SEL_GENERATOR_ID_AMI);
 	sel_record.evm_ver = SEL_EVM_VER_2;
 	sel_record.sensor_type	= SENSOR_TYPE_SYS_EVENT;
 	sel_record.sensor_number =
-- 
2.23.0



More information about the Skiboot mailing list