mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-04 18:44:36 +00:00
[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 ( " " );
|
||||
continue;
|
||||
}
|
||||
printf ( " %02x", bytes[i] );
|
||||
printf ( "%c%02x",
|
||||
( ( ( i % 16 ) == 8 ) ? '-' : ' ' ), bytes[i] );
|
||||
}
|
||||
printf ( " : " );
|
||||
for ( i = offset ; i < ( offset + 16 ) ; i++ ) {
|
||||
|
Loading…
Reference in New Issue
Block a user