peci_cmds: print raw command response in verbose mode
Change-Id: Iffd4ff41f458ea5cc3f3ae4ca9f09f97b16fcb0f
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/peci_cmds.c b/peci_cmds.c
index f1de9bc..e789ca3 100644
--- a/peci_cmds.c
+++ b/peci_cmds.c
@@ -682,6 +682,15 @@
}
ret = peci_raw(rawAddr, readLength, rawCmd, writeLength, rawResp,
readLength);
+ if (verbose)
+ {
+ printf("Raw response: ");
+ for (i = 0; i < readLength; i++)
+ {
+ printf("0x%02x ", rawResp[i]);
+ }
+ printf("\n");
+ }
if (0 != ret)
{
printf("ERROR %d: command failed\n", ret);