[PATCH phosphor-host-ipmid] add sel not sending log

OpenBMC Patches patches at stwcx.xyz
Sun Nov 1 12:14:42 AEDT 2015


From: Chris Austen <austenc at us.ibm.com>

---
 storagehandler.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/storagehandler.C b/storagehandler.C
index 359e53f..dc0217e 100644
--- a/storagehandler.C
+++ b/storagehandler.C
@@ -182,7 +182,7 @@ ipmi_ret_t ipmi_storage_add_sel(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
     ipmi_add_sel_request_t *p = (ipmi_add_sel_request_t*) request;
     uint16_t recordid;
 
-    recordid = ((uint16_t)p->eventdata[2] << 8) | p->eventdata[1];
+    recordid = ((uint16_t)p->eventdata[1] << 8) | p->eventdata[2];
 
     printf("IPMI Handling ADD-SEL for record 0x%04x\n", recordid);
 
-- 
2.6.0




More information about the openbmc mailing list