summaryrefslogtreecommitdiffstats
path: root/src/core/debug.c
diff options
context:
space:
mode:
authorMichael Brown2006-07-17 15:04:29 +0200
committerMichael Brown2006-07-17 15:04:29 +0200
commit35b0233baa3ab71f0d97b834af06579c50744c37 (patch)
tree9bb01b8c53caba7816e326bb8a4002b0b85e9b03 /src/core/debug.c
parentAdd sketch code to reassemble a DHCP packet from our internal "everything (diff)
downloadipxe-35b0233baa3ab71f0d97b834af06579c50744c37.tar.gz
ipxe-35b0233baa3ab71f0d97b834af06579c50744c37.tar.xz
ipxe-35b0233baa3ab71f0d97b834af06579c50744c37.zip
Tidy up hex_dump() output.
Diffstat (limited to 'src/core/debug.c')
-rw-r--r--src/core/debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/debug.c b/src/core/debug.c
index 78502b3b..3facad29 100644
--- a/src/core/debug.c
+++ b/src/core/debug.c
@@ -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" );
}