From: Mark Cave-Ayland Date: Fri, 28 Jun 2013 13:43:16 +0000 (+0100) Subject: cmd646: fix build when DEBUG_IDE is enabled. X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~1656^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=721da65c6eba9c053d73744ecaa882b0f7cd634a;p=sdk%2Femulator%2Fqemu.git 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 CC: Kevin Wolf Signed-off-by: Kevin Wolf --- diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index a73eb9a..9916701 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: