diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2013-06-28 14:43:16 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-06-28 15:46:38 +0200 |
commit | 721da65c6eba9c053d73744ecaa882b0f7cd634a (patch) | |
tree | 746f03c20af92d86fc3ad03c64dc136092c565d1 | |
parent | 3ac216270a62418519c08e88c17005a8f1539cf2 (diff) |
cmd646: fix build when DEBUG_IDE is enabled.
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>
-rw-r--r-- | hw/ide/cmd646.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index a73eb9a5f7..99167011dd 100644 --- a/hw/ide/cmd646.c +++ b/hw/ide/cmd646.c @@ -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: |