Revision a8b7063b
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 |
|
b/hw/zaurus.c | ||
---|---|---|
21 | 21 |
#include "sharpsl.h" |
22 | 22 |
|
23 | 23 |
#undef REG_FMT |
24 |
#if TARGET_PHYS_ADDR_BITS == 32 |
|
25 |
#define REG_FMT "0x%02x" |
|
26 |
#else |
|
27 | 24 |
#define REG_FMT "0x%02lx" |
28 |
#endif |
|
29 | 25 |
|
30 | 26 |
/* SCOOP devices */ |
31 | 27 |
|
... | ... | |
98 | 94 |
case SCOOP_GPRR: |
99 | 95 |
return s->gpio_level; |
100 | 96 |
default: |
101 |
zaurus_printf("Bad register offset " REG_FMT "\n", addr); |
|
97 |
zaurus_printf("Bad register offset " REG_FMT "\n", (unsigned long)addr);
|
|
102 | 98 |
} |
103 | 99 |
|
104 | 100 |
return 0; |
... | ... | |
143 | 139 |
scoop_gpio_handler_update(s); |
144 | 140 |
break; |
145 | 141 |
default: |
146 |
zaurus_printf("Bad register offset " REG_FMT "\n", addr); |
|
142 |
zaurus_printf("Bad register offset " REG_FMT "\n", (unsigned long)addr);
|
|
147 | 143 |
} |
148 | 144 |
} |
149 | 145 |
|
Also available in: Unified diff