From dab117481e660d25cccc1fb758a25613b7e4aee8 Mon Sep 17 00:00:00 2001 From: Andrew Jeffery Date: Thu, 21 Feb 2019 16:58:06 +1030 Subject: [PATCH] test-ipmi-hiomap: Dump unexpected IPMI messages [ Upstream commit f246cceda717385be6131078a4077e3671dc6d1f ] 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 Signed-off-by: Stewart Smith Signed-off-by: Vasant Hegde --- libflash/test/test-ipmi-hiomap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libflash/test/test-ipmi-hiomap.c b/libflash/test/test-ipmi-hiomap.c index 19e0cbf5c846..e2330fe85486 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); }