Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
Michael Brown committed Jul 17, 2009
1 parent b7e93a6 commit 5117278
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/debug.c
Expand Up @@ -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++ ) {
Expand Down

0 comments on commit 5117278

Please sign in to comment.