[debug] Use a delimiter to break up DBG_HD() output
Reading sixteen columns of hex digits can be difficult; include a "-" character to split the output into two groups of eight columns.
This commit is contained in:
parent
b7e93a6a55
commit
51172783e2
@ -36,7 +36,8 @@ static void dbg_hex_dump_da_row ( unsigned long dispaddr, const void *data,
|
|||||||
printf ( " " );
|
printf ( " " );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
printf ( " %02x", bytes[i] );
|
printf ( "%c%02x",
|
||||||
|
( ( ( i % 16 ) == 8 ) ? '-' : ' ' ), bytes[i] );
|
||||||
}
|
}
|
||||||
printf ( " : " );
|
printf ( " : " );
|
||||||
for ( i = offset ; i < ( offset + 16 ) ; i++ ) {
|
for ( i = offset ; i < ( offset + 16 ) ; i++ ) {
|
||||||
|
Reference in New Issue
Block a user