X-Git-Url: http://git.maemo.org/git/?p=qemu;a=blobdiff_plain;f=hw%2Fm48t59.c;fp=hw%2Fm48t59.c;h=4804443202af803f2099f76db23af975a28bddf3;hp=0cfdab39f2107829addbad75bba6b5f566cf5b5a;hb=759b334a9739814df2883aa4c41b1c0f5670e90a;hpb=7e2198fc87e878b8ce5df965477e21713ebf7834 diff --git a/hw/m48t59.c b/hw/m48t59.c index 0cfdab3..4804443 100644 --- a/hw/m48t59.c +++ b/hw/m48t59.c @@ -30,9 +30,9 @@ //#define DEBUG_NVRAM #if defined(DEBUG_NVRAM) -#define NVRAM_PRINTF(fmt, args...) do { printf(fmt , ##args); } while (0) +#define NVRAM_PRINTF(fmt, ...) do { printf(fmt , ## __VA_ARGS__); } while (0) #else -#define NVRAM_PRINTF(fmt, args...) do { } while (0) +#define NVRAM_PRINTF(fmt, ...) do { } while (0) #endif /* @@ -641,7 +641,7 @@ m48t59_t *m48t59_init (qemu_irq IRQ, target_phys_addr_t mem_base, } qemu_get_timedate(&s->alarm, 0); - qemu_register_reset(m48t59_reset, s); + qemu_register_reset(m48t59_reset, 0, s); save_base = mem_base ? mem_base : io_base; register_savevm("m48t59", save_base, 1, m48t59_save, m48t59_load, s);