core/ipmi: Improve error message
Useful for debugging.
@@ -147,7 +147,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);
