Skip to content

Commit

Permalink
test-ipmi-hiomap: Dump unexpected IPMI messages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
amboar authored and stewartsmith committed Feb 22, 2019
1 parent 43ca6a2 commit f246cce
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 f246cce

Please sign in to comment.