Revision a8b7063b hw/spitz.c
b/hw/spitz.c | ||
---|---|---|
24 | 24 |
#include "boards.h" |
25 | 25 |
|
26 | 26 |
#undef REG_FMT |
27 |
#if TARGET_PHYS_ADDR_BITS == 32 |
|
28 |
#define REG_FMT "0x%02x" |
|
29 |
#else |
|
30 | 27 |
#define REG_FMT "0x%02lx" |
31 |
#endif |
|
32 | 28 |
|
33 | 29 |
/* Spitz Flash */ |
34 | 30 |
#define FLASH_BASE 0x0c000000 |
... | ... | |
87 | 83 |
return ecc_digest(&s->ecc, nand_getio(s->nand)); |
88 | 84 |
|
89 | 85 |
default: |
90 |
zaurus_printf("Bad register offset " REG_FMT "\n", addr); |
|
86 |
zaurus_printf("Bad register offset " REG_FMT "\n", (unsigned long)addr);
|
|
91 | 87 |
} |
92 | 88 |
return 0; |
93 | 89 |
} |
... | ... | |
129 | 125 |
break; |
130 | 126 |
|
131 | 127 |
default: |
132 |
zaurus_printf("Bad register offset " REG_FMT "\n", addr); |
|
128 |
zaurus_printf("Bad register offset " REG_FMT "\n", (unsigned long)addr);
|
|
133 | 129 |
} |
134 | 130 |
} |
135 | 131 |
|
Also available in: Unified diff