From 444ce24195b97d1b425cd250a731e3f5f4b4bbfa Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 11 Nov 2007 19:47:59 +0000 Subject: use correct printf format git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3611 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/spitz.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hw/spitz.c') diff --git a/hw/spitz.c b/hw/spitz.c index 68bba18e1e..764b694e17 100644 --- a/hw/spitz.c +++ b/hw/spitz.c @@ -12,7 +12,11 @@ #define spitz_printf(format, ...) \ fprintf(stderr, "%s: " format, __FUNCTION__, ##__VA_ARGS__) #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 -- cgit 1.4.1