]> git.proxmox.com Git - qemu.git/commitdiff
cmd646: fix build when DEBUG_IDE is enabled.
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 28 Jun 2013 13:43:16 +0000 (14:43 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Jun 2013 13:46:38 +0000 (15:46 +0200)
Make sure we use the correct TARGET/PRI macros in the debug statements.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
CC: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/cmd646.c

index a73eb9a5f7b0d3d6c55d65fac7ed522fbd6dc46e..99167011dd5bb945672137c2c80218fc226ae615 100644 (file)
@@ -154,7 +154,7 @@ static uint64_t bmdma_read(void *opaque, hwaddr addr,
         break;
     }
 #ifdef DEBUG_IDE
-    printf("bmdma: readb 0x%02x : 0x%02x\n", addr, val);
+    printf("bmdma: readb " TARGET_FMT_plx " : 0x%02x\n", addr, val);
 #endif
     return val;
 }
@@ -170,7 +170,7 @@ static void bmdma_write(void *opaque, hwaddr addr,
     }
 
 #ifdef DEBUG_IDE
-    printf("bmdma: writeb 0x%02x : 0x%02x\n", addr, val);
+    printf("bmdma: writeb " TARGET_FMT_plx " : 0x%" PRIx64 "\n", addr, val);
 #endif
     switch(addr & 3) {
     case 0: