X-Git-Url: http://git.maemo.org/git/?p=qemu;a=blobdiff_plain;f=hw%2Fcs4231.c;fp=hw%2Fcs4231.c;h=a5ba221bd8e5f6fb8e80ae05c708cd8873e5b42d;hp=59d83e01b2ff08d5aa7bc1c067a8258a6f6c5428;hb=759b334a9739814df2883aa4c41b1c0f5670e90a;hpb=7e2198fc87e878b8ce5df965477e21713ebf7834 diff --git a/hw/cs4231.c b/hw/cs4231.c index 59d83e0..a5ba221 100644 --- a/hw/cs4231.c +++ b/hw/cs4231.c @@ -46,10 +46,10 @@ typedef struct CSState { #define CS_CDC_VER 0x8a #ifdef DEBUG_CS -#define DPRINTF(fmt, args...) \ - do { printf("CS: " fmt , ##args); } while (0) +#define DPRINTF(fmt, ...) \ + do { printf("CS: " fmt , ## __VA_ARGS__); } while (0) #else -#define DPRINTF(fmt, args...) +#define DPRINTF(fmt, ...) #endif static void cs_reset(void *opaque) @@ -175,6 +175,6 @@ void cs_init(target_phys_addr_t base, int irq, void *intctl) cs_io_memory = cpu_register_io_memory(0, cs_mem_read, cs_mem_write, s); cpu_register_physical_memory(base, CS_SIZE, cs_io_memory); register_savevm("cs4231", base, 1, cs_save, cs_load, s); - qemu_register_reset(cs_reset, s); + qemu_register_reset(cs_reset, 0, s); cs_reset(s); }