From 35b0233baa3ab71f0d97b834af06579c50744c37 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 17 Jul 2006 13:04:29 +0000 Subject: [PATCH] Tidy up hex_dump() output. --- src/core/debug.c | 4 ++-- 1 file 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" ); }