Fix hw/acpi.c build w/ DEBUG enabled
PATCH 1/1 Fix hw/acpi.c build w/ DEBUG enabled
Trivial build warning/fixes when the local DEBUG define is enabled.
Signed-off-by Alex Williamson <[email protected]>
--
qemu/hw/acpi.c +6 -6
@@ -586,7 +586,7 @@ static uint32_t gpe_readb(void *opaque, uint32_t addr) }#if defined(DEBUG ) -printf ("gpe read %lx == %lx\n" , addr, val); +printf ("gpe read %x == %x\n" , addr, val);#endif return val; }
@@ -619,7 +619,7 @@ static void gpe_writeb(void *opaque, uint32_t addr, uint32_t val) }#if defined(DEBUG ) -printf ("gpe write %lx <== %d\n" , addr, val); +printf ("gpe write %x <== %d\n" , addr, val);#endif }
@@ -639,7 +639,7 @@ static uint32_t pcihotplug_read(void *opaque, uint32_t addr) }#if defined(DEBUG ) -printf ("pcihotplug read %lx == %lx\n" , addr, val); +printf ("pcihotplug read %x == %x\n" , addr, val);#endif return val; }
@@ -657,14 +657,14 @@ static void pcihotplug_write(void *opaque, uint32_t addr, uint32_t val) }#if defined(DEBUG ) -printf ("pcihotplug write %lx <== %d\n" , addr, val); +printf ("pcihotplug write %x <== %d\n" , addr, val);#endif }static uint32_t pciej_read (void *opaque,uint32_t addr) {#if defined(DEBUG ) -printf ("pciej read %lx == %lx\n" , addr, val); +printf ("pciej read %x\n" , addr);#endif return 0 ; }
@@ -676,7 +676,7 @@ static void pciej_write(void *opaque, uint32_t addr, uint32_t val)device_hot_remove_success (0 , slot);#if defined(DEBUG ) -printf ("pciej write %lx <== %d\n" , addr, val); +printf ("pciej write %x <== %d\n" , addr, val);#endif }
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Avi Kivity
AppliedQuoted 3 lines · Alex Williamson
Trivial build warning/fixes when the local DEBUG define is enabled.
Applied, thanks.
Signature · 7 lines
error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/