+2010-03-30 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-core.h (device_error): Add const to message, and add printf
+ format attribute.
+
2010-03-30 Mike Frysinger <vapier@gentoo.org>
* sim-profile.c (profile_print_addr_ranges): Wrap with the
#if (WITH_DEVICES)
/* TODO: create sim/common/device.h */
/* These are defined with each particular cpu. */
-void device_error (device *me, char* message, ...);
+void device_error (device *me, const char *message, ...) __attribute__((format (printf, 2, 3)));
int device_io_read_buffer(device *me, void *dest, int space, address_word addr, unsigned nr_bytes, SIM_DESC sd, sim_cpu *processor, sim_cia cia);
int device_io_write_buffer(device *me, const void *source, int space, address_word addr, unsigned nr_bytes, SIM_DESC sd, sim_cpu *processor, sim_cia cia);
#endif
--- /dev/null
+2010-03-30 Mike Frysinger <vapier@gentoo.org>
+
+ * devices.c (device_error): Add const to message.
void
device_error (device *me ATTRIBUTE_UNUSED,
- char *message ATTRIBUTE_UNUSED,
+ const char *message ATTRIBUTE_UNUSED,
...)
{
abort ();
+2010-03-30 Mike Frysinger <vapier@gentoo.org>
+
+ * devices.c (device_error): Add const to message.
+
2010-02-12 Doug Evans <dje@sebabeach.org>
* decode.c, * decode.h: Regenerate.
return nr_bytes;
}
-void device_error (device *me, char* message, ...) {}
+void device_error (device *me, const char *message, ...) {}
+2010-03-30 Mike Frysinger <vapier@gentoo.org>
+
+ * devices.c (device_error): Add const to message.
+
2010-02-11 Doug Evans <dje@sebabeach.org>
* cpu.h, * cpu2.h, * cpux.h, * decode.c, * decode2.c, * decodex.c,
}
void
-device_error (device *me, char *message, ...)
+device_error (device *me, const char *message, ...)
{
}