summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/megadrive
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-11-01 14:34:45 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-11-01 14:34:45 +0100
commit18188cb13bc11ba743d19e28125c6d8ab940fb70 (patch)
tree1463ebf983d0525857b43cfd0fa2d803ea108e78 /src/devices/bus/megadrive
parentb814617b65550c6f5a86336f048ae14b312b4136 (diff)
making logerror part of machine and device classes [Miodrag Milanovic]
display tag of device that logged message
Diffstat (limited to 'src/devices/bus/megadrive')
-rw-r--r--src/devices/bus/megadrive/md_slot.h2
-rw-r--r--src/devices/bus/megadrive/stm95.c2
2 files changed, 2 insertions, 2 deletions
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;