aboutsummaryrefslogtreecommitdiff
path: root/hw/zaurus.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-06-13 15:08:49 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-06-13 15:08:49 +0000
commita8b7063b1fe6de729ee8dac55ea59d321fae9ee1 (patch)
tree185ffd36f960dbc4ce6de7c0a74332ff13643afa /hw/zaurus.c
parentc7085da7266120a8594f8fddcbf3b6839a8eda58 (diff)
Avoid a gcc 3 format warning
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/zaurus.c')
-rw-r--r--hw/zaurus.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/hw/zaurus.c b/hw/zaurus.c
index 56e150d51c..7cf47b9c96 100644
--- a/hw/zaurus.c
+++ b/hw/zaurus.c
@@ -21,11 +21,7 @@
#include "sharpsl.h"
#undef REG_FMT
-#if TARGET_PHYS_ADDR_BITS == 32
-#define REG_FMT "0x%02x"
-#else
#define REG_FMT "0x%02lx"
-#endif
/* SCOOP devices */
@@ -98,7 +94,7 @@ static uint32_t scoop_readb(void *opaque, target_phys_addr_t addr)
case SCOOP_GPRR:
return s->gpio_level;
default:
- zaurus_printf("Bad register offset " REG_FMT "\n", addr);
+ zaurus_printf("Bad register offset " REG_FMT "\n", (unsigned long)addr);
}
return 0;
@@ -143,7 +139,7 @@ static void scoop_writeb(void *opaque, target_phys_addr_t addr, uint32_t value)
scoop_gpio_handler_update(s);
break;
default:
- zaurus_printf("Bad register offset " REG_FMT "\n", addr);
+ zaurus_printf("Bad register offset " REG_FMT "\n", (unsigned long)addr);
}
}