diff options
author | Marty Connor | 2006-06-29 21:04:25 +0200 |
---|---|---|
committer | Marty Connor | 2006-06-29 21:04:25 +0200 |
commit | eb091f03e3b05606e028df96931c8de5daeffe23 (patch) | |
tree | 98bc99a23983164e063997c8306a9857e9ea7f92 /src/core/debug.c | |
parent | Removed vestigal FILO code (diff) | |
download | ipxe-eb091f03e3b05606e028df96931c8de5daeffe23.tar.gz ipxe-eb091f03e3b05606e028df96931c8de5daeffe23.tar.xz ipxe-eb091f03e3b05606e028df96931c8de5daeffe23.zip |
fix printf format args
Diffstat (limited to 'src/core/debug.c')
-rw-r--r-- | src/core/debug.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/debug.c b/src/core/debug.c index 175a2f95..4b902c28 100644 --- a/src/core/debug.c +++ b/src/core/debug.c @@ -25,10 +25,10 @@ void hex_dump ( const char *data, const unsigned int len ) { more(); } if ( ( index % 16 ) == 0 ) { - printf ( "%X [%X] : %hX :", data + index, + printf ( "%p [%lX] : %X :", data + index, virt_to_phys ( data + index ), index ); } - printf ( " %hhX", data[index] ); + printf ( " %02X", data[index] ); } printf ( "\n" ); } @@ -64,19 +64,19 @@ int check_region ( void *region, size_t len ) { /* Start of corruption */ if ( corrupted == 0 ) { corrupted = 1; - printf ( "Region %#x-%#x (physical %#x-%#x) " + printf ( "Region %p-%p (physical %#lx-%#lx) " "corrupted\n", region, region + len, virt_to_phys ( region ), virt_to_phys ( region + len ) ); } in_corruption = 1; - printf ( "--- offset %#x ", offset ); + printf ( "--- offset %#lx ", offset ); } else if ( ( in_corruption != 0 ) && ( test == GUARD_SYMBOL ) ) { /* End of corruption */ in_corruption = 0; - printf ( "to offset %#x", offset ); + printf ( "to offset %#lx", offset ); } } |