mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
ID: 3608765 - improve debug output in ipmi_ekanalyzer_fru_file2structure()
Format the records a little more clearly by adding offsets. Commit for Dan Gora
This commit is contained in:
parent
49784a9ec8
commit
fa5bdb2f3d
@ -4011,12 +4011,15 @@ ipmi_ekanalyzer_fru_file2structure(char * filename,
|
|||||||
}
|
}
|
||||||
if (verbose > 1) {
|
if (verbose > 1) {
|
||||||
int i;
|
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++) {
|
for (i = 0; i < ((*list_record)->header.len); i++) {
|
||||||
printf("0x%04x: %02x\t",
|
if (!(i % 8)) {
|
||||||
i, (*list_record)->data[i]);
|
printf("\n0x%02x: ", i);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("%02x ",
|
||||||
|
(*list_record)->data[i]);
|
||||||
|
}
|
||||||
|
printf("\n\n");
|
||||||
}
|
}
|
||||||
ipmi_ek_add_record2list(list_record, list_head, list_last);
|
ipmi_ek_add_record2list(list_record, list_head, list_last);
|
||||||
/* mask the 8th bits to see if it is the last record */
|
/* mask the 8th bits to see if it is the last record */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user