diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-06-13 15:08:49 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-06-13 15:08:49 +0000 |
commit | a8b7063b1fe6de729ee8dac55ea59d321fae9ee1 (patch) | |
tree | 185ffd36f960dbc4ce6de7c0a74332ff13643afa /hw/spitz.c | |
parent | c7085da7266120a8594f8fddcbf3b6839a8eda58 (diff) | |
download | qemu-a8b7063b1fe6de729ee8dac55ea59d321fae9ee1.zip |
Avoid a gcc 3 format warning
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/spitz.c')
-rw-r--r-- | hw/spitz.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/spitz.c b/hw/spitz.c index b0d42adc93..bfab06ad4a 100644 --- a/hw/spitz.c +++ b/hw/spitz.c @@ -24,11 +24,7 @@ #include "boards.h" #undef REG_FMT -#if TARGET_PHYS_ADDR_BITS == 32 -#define REG_FMT "0x%02x" -#else #define REG_FMT "0x%02lx" -#endif /* Spitz Flash */ #define FLASH_BASE 0x0c000000 @@ -87,7 +83,7 @@ static uint32_t sl_readb(void *opaque, target_phys_addr_t addr) return ecc_digest(&s->ecc, nand_getio(s->nand)); default: - zaurus_printf("Bad register offset " REG_FMT "\n", addr); + zaurus_printf("Bad register offset " REG_FMT "\n", (unsigned long)addr); } return 0; } @@ -129,7 +125,7 @@ static void sl_writeb(void *opaque, target_phys_addr_t addr, break; default: - zaurus_printf("Bad register offset " REG_FMT "\n", addr); + zaurus_printf("Bad register offset " REG_FMT "\n", (unsigned long)addr); } } |