aboutsummaryrefslogtreecommitdiff
path: root/libflash/test
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2019-02-21 16:58:06 +1030
committerStewart Smith <stewart@linux.ibm.com>2019-02-21 22:58:46 -0600
commitf246cceda717385be6131078a4077e3671dc6d1f (patch)
tree39d176f1e8483aa696483bef097b0bdc16b6cfd6 /libflash/test
parent43ca6a2e5b1237f7bf2efb70333c13d145ae62cd (diff)
downloadskiboot-f246cceda717385be6131078a4077e3671dc6d1f.zip
skiboot-f246cceda717385be6131078a4077e3671dc6d1f.tar.gz
skiboot-f246cceda717385be6131078a4077e3671dc6d1f.tar.bz2
test-ipmi-hiomap: Dump unexpected IPMI messages
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>
Diffstat (limited to 'libflash/test')
-rw-r--r--libflash/test/test-ipmi-hiomap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libflash/test/test-ipmi-hiomap.c b/libflash/test/test-ipmi-hiomap.c
index 19e0cbf..e2330fe 100644
--- a/libflash/test/test-ipmi-hiomap.c
+++ b/libflash/test/test-ipmi-hiomap.c
@@ -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);
}