From fa5bdb2f3de1edb9a836d4c7149dc7f2d9f6ca90 Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Tue, 23 Apr 2013 07:28:53 +0000 Subject: [PATCH] ID: 3608765 - improve debug output in ipmi_ekanalyzer_fru_file2structure() Format the records a little more clearly by adding offsets. Commit for Dan Gora --- ipmitool/lib/ipmi_ekanalyzer.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ipmitool/lib/ipmi_ekanalyzer.c b/ipmitool/lib/ipmi_ekanalyzer.c index 1ea287f..2c3286a 100644 --- a/ipmitool/lib/ipmi_ekanalyzer.c +++ b/ipmitool/lib/ipmi_ekanalyzer.c @@ -4011,12 +4011,15 @@ ipmi_ekanalyzer_fru_file2structure(char * filename, } if (verbose > 1) { int i; - printf("Type: %02x\t", (*list_record)->header.type); + printf("Type: %02x", (*list_record)->header.type); for (i = 0; i < ((*list_record)->header.len); i++) { - printf("0x%04x: %02x\t", - i, (*list_record)->data[i]); + if (!(i % 8)) { + printf("\n0x%02x: ", i); + } + printf("%02x ", + (*list_record)->data[i]); } - printf("\n"); + printf("\n\n"); } ipmi_ek_add_record2list(list_record, list_head, list_last); /* mask the 8th bits to see if it is the last record */