Format the records a little more clearly by adding offsets.
Signed-off-by: Dan Gora <[email protected]>
---
ipmitool/lib/ipmi_ekanalyzer.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/ipmitool/lib/ipmi_ekanalyzer.c b/ipmitool/lib/ipmi_ekanalyzer.c
index 2da4650..34b6cb6 100644
--- a/ipmitool/lib/ipmi_ekanalyzer.c
+++ b/ipmitool/lib/ipmi_ekanalyzer.c
@@ -3987,12 +3987,14 @@ ipmi_ekanalyzer_fru_file2structure( char * filename,
(*list_record)->header.len);
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*/
--
1.7.7
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Ipmitool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel