X-Git-Url: http://git.maemo.org/git/?p=qemu;a=blobdiff_plain;f=hw%2Feccmemctl.c;fp=hw%2Feccmemctl.c;h=aa4218d18479bde7e4bdb54ab4a260b8490d25ed;hp=28519c81f9257227d1c6e7c6ae7190334ed5824c;hb=759b334a9739814df2883aa4c41b1c0f5670e90a;hpb=7e2198fc87e878b8ce5df965477e21713ebf7834 diff --git a/hw/eccmemctl.c b/hw/eccmemctl.c index 28519c8..aa4218d 100644 --- a/hw/eccmemctl.c +++ b/hw/eccmemctl.c @@ -28,10 +28,10 @@ //#define DEBUG_ECC #ifdef DEBUG_ECC -#define DPRINTF(fmt, args...) \ - do { printf("ECC: " fmt , ##args); } while (0) +#define DPRINTF(fmt, ...) \ + do { printf("ECC: " fmt , ## __VA_ARGS__); } while (0) #else -#define DPRINTF(fmt, args...) +#define DPRINTF(fmt, ...) #endif /* There are 3 versions of this chip used in SMP sun4m systems: @@ -334,7 +334,7 @@ void * ecc_init(target_phys_addr_t base, qemu_irq irq, uint32_t version) ecc_io_memory); } register_savevm("ECC", base, 3, ecc_save, ecc_load, s); - qemu_register_reset(ecc_reset, s); + qemu_register_reset(ecc_reset, 0, s); ecc_reset(s); return s; }