Skip to content

Commit

Permalink
test-ipmi-hiomap: Dump unexpected IPMI messages
Browse files Browse the repository at this point in the history
[ Upstream commit f246cce ]

These indicate an implementation bug or broken scenario. Either way it's
helpful to know what arrived given it wasn't expected.

Cc: stable
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
  • Loading branch information
amboar authored and Vasant Hegde committed Mar 4, 2019
1 parent ef7e137 commit dab1174
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libflash/test/test-ipmi-hiomap.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ void ipmi_queue_msg_sync(struct ipmi_msg *msg)
assert(ctx->cursor->p->type == scenario_cmd);
cmd = &ctx->cursor->p->c;
} else {
printf("Got unexpected request:\n");
for (ssize_t i = 0; i < msg->req_size; i++)
printf("msg->data[%zd]: 0x%02x\n", i, msg->data[i]);
assert(false);
}

Expand Down

0 comments on commit dab1174

Please sign in to comment.