[Skiboot] [PATCH trivial] core/ipmi: Improve error message

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Mon Feb 4 17:01:31 AEDT 2019


Useful for debugging.

Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 core/ipmi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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



More information about the Skiboot mailing list