]> Git Repo - qemu.git/commitdiff
cadence_ttc: Debug mode compile fixes
authorPeter Crosthwaite <[email protected]>
Sat, 26 Jan 2013 20:54:33 +0000 (12:54 -0800)
committerStefan Hajnoczi <[email protected]>
Wed, 30 Jan 2013 09:31:27 +0000 (10:31 +0100)
Some printfs are throwing warnings when debug mode is enabled. Fixed.

Signed-off-by: Peter Crosthwaite <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
hw/cadence_ttc.c

index 2a8fadd810944dafabb45e2969608299c36614b6..67028a3f75694c7ef771c9e50386cacf276f1f5a 100644 (file)
@@ -302,7 +302,7 @@ static uint64_t cadence_ttc_read(void *opaque, hwaddr offset,
 {
     uint32_t ret = cadence_ttc_read_imp(opaque, offset);
 
-    DB_PRINT("addr: %08x data: %08x\n", offset, ret);
+    DB_PRINT("addr: %08x data: %08x\n", (unsigned)offset, (unsigned)ret);
     return ret;
 }
 
@@ -311,7 +311,7 @@ static void cadence_ttc_write(void *opaque, hwaddr offset,
 {
     CadenceTimerState *s = cadence_timer_from_addr(opaque, offset);
 
-    DB_PRINT("addr: %08x data %08x\n", offset, (unsigned)value);
+    DB_PRINT("addr: %08x data %08x\n", (unsigned)offset, (unsigned)value);
 
     cadence_timer_sync(s);
 
This page took 0.038386 seconds and 4 git commands to generate.