From 18188cb13bc11ba743d19e28125c6d8ab940fb70 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sun, 1 Nov 2015 14:34:45 +0100 Subject: making logerror part of machine and device classes [Miodrag Milanovic] display tag of device that logged message --- src/devices/bus/megadrive/md_slot.h | 2 +- src/devices/bus/megadrive/stm95.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/devices/bus/megadrive') diff --git a/src/devices/bus/megadrive/md_slot.h b/src/devices/bus/megadrive/md_slot.h index e7cf7e43c3b..f4a6d2f5f85 100644 --- a/src/devices/bus/megadrive/md_slot.h +++ b/src/devices/bus/megadrive/md_slot.h @@ -100,7 +100,7 @@ public: virtual int read_test() { return 0; } // used by Virtua Racing test /* this probably should do more, like make Genesis V2 'die' if the SEGA string is not written promptly */ - virtual DECLARE_WRITE16_MEMBER(write_tmss_bank) { logerror("Write to TMSS bank: offset %x data %x\n", 0xa14000 + (offset << 1), data); }; + virtual DECLARE_WRITE16_MEMBER(write_tmss_bank) { m_device.logerror("Write to TMSS bank: offset %x data %x\n", 0xa14000 + (offset << 1), data); }; virtual void rom_alloc(size_t size, const char *tag); virtual void nvram_alloc(size_t size); diff --git a/src/devices/bus/megadrive/stm95.c b/src/devices/bus/megadrive/stm95.c index 67c367425a6..cc8765f3b4a 100644 --- a/src/devices/bus/megadrive/stm95.c +++ b/src/devices/bus/megadrive/stm95.c @@ -96,7 +96,7 @@ void stm95_eeprom_device::set_sck_line(int state) WEL = 1; break; default: - logerror("STM95 EEPROM: unknown cmd %02X\n", stream_data&0xff); + machine().logerror("STM95 EEPROM: unknown cmd %02X\n", stream_data&0xff); } } break; -- cgit v1.2.3-70-g09d2