[Skiboot] [PATCH trivial] core/ipmi: Print correct netfn value

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Thu Mar 21 21:17:15 AEDT 2019


Fixes: 7516e382 (core/ipmi: Improve error message)
Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 core/ipmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/ipmi.c b/core/ipmi.c
index 599d2e97f..2bf3f4dab 100644
--- a/core/ipmi.c
+++ b/core/ipmi.c
@@ -149,7 +149,7 @@ void ipmi_cmd_done(uint8_t cmd, uint8_t netfn, uint8_t cc, struct ipmi_msg *msg)
 
 	if (cc != IPMI_CC_NO_ERROR) {
 		prlog(PR_DEBUG, "IPMI: Got error response. cmd=0x%x, netfn=0x%x,"
-		      " rc=0x%02x\n", msg->cmd, msg->netfn, msg->cc);
+		      " rc=0x%02x\n", msg->cmd, msg->netfn >> 2, msg->cc);
 
 		assert(msg->error);
 		msg->error(msg);
-- 
2.14.3



More information about the Skiboot mailing list