mirror of https://github.com/ipxe/ipxe.git
[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.pull/1/head
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++ ) {
|
||||||
|
|
Loading…
Reference in New Issue