From 56a3ff72021bcfb40976cec2ccc99662a3809830 Mon Sep 17 00:00:00 2001 From: Marty Connor Date: Thu, 14 Sep 2006 20:54:05 +0000 Subject: [PATCH] get rid of compile warnings (except intentionally generated ones) --- src/arch/i386/firmware/pcbios/basemem.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/arch/i386/firmware/pcbios/basemem.c b/src/arch/i386/firmware/pcbios/basemem.c index f905d698..0c149a5e 100644 --- a/src/arch/i386/firmware/pcbios/basemem.c +++ b/src/arch/i386/firmware/pcbios/basemem.c @@ -72,9 +72,9 @@ void * alloc_base_memory ( size_t size ) { */ memset ( ptr, 0, size_kb << 10 ); - DBG ( "Allocated %d kB of base memory at [%hx:0000,%hx:0000), " \ - "%d kB now free\n", size_kb, \ - ( virt_to_phys ( ptr ) >> 4 ), \ + DBG ( "Allocated %d kB of base memory at [%4.4lx:0000,%4.4lx:0000), " + "%d kB now free\n", size_kb, + ( virt_to_phys ( ptr ) >> 4 ), ( ( virt_to_phys ( ptr ) + ( size_kb << 10 ) ) >> 4 ), fbms ); /* Update our memory map */ @@ -108,7 +108,7 @@ void free_base_memory ( void *ptr, size_t size ) { return; } - DBG ( "Trying to free %d bytes base memory at %hx:%hx " + DBG ( "Trying to free %d bytes base memory at %4.4lx:%4.4lx " "from %d kB free\n", size, ( virt_to_phys ( ptr - remainder ) >> 4 ), ( virt_to_phys ( ptr - remainder ) & 0xf ) + remainder, @@ -168,7 +168,7 @@ static void free_unused_base_memory ( void ) { /* Return memory to BIOS */ fbms += free_block->header.size_kb; - DBG ( "Freed %d kB of base memory at [%hx:0000,%hx:0000), " + DBG ( "Freed %ld kB of base memory at [%4.4lx:0000,%4.4lx:0000), " "%d kB now free\n", free_block->header.size_kb, ( virt_to_phys ( free_block ) >> 4 ),