Skip to content

Commit

Permalink
core/ipmi: Improve error message
Browse files Browse the repository at this point in the history
Useful for debugging.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
Vasant Hegde authored and stewartsmith committed Feb 4, 2019
1 parent 9ef153f commit 7516e38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/ipmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7516e38

Please sign in to comment.