david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Tidy up hex_dump() output.

This commit is contained in:
Michael Brown 2006-07-17 13:04:29 +00:00
parent b24947f0c0
commit 35b0233baa
1 changed files with 2 additions and 2 deletions

View File

@ -25,10 +25,10 @@ void hex_dump ( const unsigned char *data, const unsigned int len ) {
more();
}
if ( ( index % 16 ) == 0 ) {
printf ( "%p [%lX] : %X :", data + index,
printf ( "%p [%lx] : %04x :", data + index,
virt_to_phys ( data + index ), index );
}
printf ( " %02X", data[index] );
printf ( " %02x", data[index] );
}
printf ( "\n" );
}