summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2011-06-24 08:47:48 +0000
committer Olivier Galibert <galibert@pobox.com>2011-06-24 08:47:48 +0000
commit041fa351ea479193c092d7071bb8717587eb67dc (patch)
tree0e814c8b656d04a1b0e41c36e520953bd55d5d14
parentfae75d234f7ef2b295882db67d505bda4b29e338 (diff)
eeprom: Add tag name in eeprom's verbosity [O. Galibert]
-rw-r--r--src/emu/machine/eeprom.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/emu/machine/eeprom.c b/src/emu/machine/eeprom.c
index f87c15e9251..07ef93e25bf 100644
--- a/src/emu/machine/eeprom.c
+++ b/src/emu/machine/eeprom.c
@@ -358,7 +358,7 @@ WRITE_LINE_MEMBER( eeprom_device::set_cs_line )
if (m_reset_line != CLEAR_LINE)
{
if (m_serial_count)
- logerror("EEPROM reset, buffer = %s\n",m_serial_buffer);
+ logerror("EEPROM %s reset, buffer = %s\n", tag(), m_serial_buffer);
m_serial_count = 0;
m_sending = 0;
@@ -385,7 +385,7 @@ WRITE_LINE_MEMBER( eeprom_device::set_clock_line )
else
m_data_buffer = m_addrspace[0]->read_byte(m_read_address);
m_clock_count = 0;
-logerror("EEPROM read %04x from address %02x\n",m_data_buffer,m_read_address);
+ logerror("EEPROM %s read %04x from address %02x\n", tag(), m_data_buffer, m_read_address);
}
m_data_buffer = (m_data_buffer << 1) | 1;
m_clock_count++;
@@ -406,11 +406,11 @@ logerror("EEPROM read %04x from address %02x\n",m_data_buffer,m_read_address);
void eeprom_device::write(int bit)
{
- LOG(("EEPROM write bit %d\n",bit));
+ LOG(("EEPROM %s write bit %d\n", tag(), bit));
if (m_serial_count >= SERIAL_BUFFER_LENGTH-1)
{
- logerror("error: EEPROM serial buffer overflow\n");
+ logerror("error: EEPROM %s serial buffer overflow\n", tag());
return;
}
@@ -436,7 +436,7 @@ void eeprom_device::write(int bit)
m_clock_count = 0;
m_sending = 1;
m_serial_count = 0;
-logerror("EEPROM read %04x from address %02x\n",m_data_buffer,address);
+ logerror("EEPROM %s read %04x from address %02x\n", tag(), m_data_buffer,address);
}
else if ( (m_serial_count > m_address_bits) &&
command_match((char*)(m_serial_buffer),m_cmd_erase,strlen((char*)(m_serial_buffer))-m_address_bits) )
@@ -449,7 +449,7 @@ logerror("EEPROM read %04x from address %02x\n",m_data_buffer,address);
address <<= 1;
if (m_serial_buffer[i] == '1') address |= 1;
}
-logerror("EEPROM erase address %02x\n",address);
+ logerror("EEPROM %s erase address %02x\n", tag(), address);
if (m_locked == 0)
{
if (m_data_bits == 16)
@@ -458,7 +458,7 @@ logerror("EEPROM erase address %02x\n",address);
m_addrspace[0]->write_byte(address, 0x00);
}
else
-logerror("Error: EEPROM is m_locked\n");
+ logerror("Error: EEPROM %s is locked\n", tag());
m_serial_count = 0;
}
else if ( (m_serial_count > (m_address_bits + m_data_bits)) &&
@@ -478,7 +478,7 @@ logerror("Error: EEPROM is m_locked\n");
data <<= 1;
if (m_serial_buffer[i] == '1') data |= 1;
}
-logerror("EEPROM write %04x to address %02x\n",data,address);
+ logerror("EEPROM %s write %04x to address %02x\n", tag(), data, address);
if (m_locked == 0)
{
if (m_data_bits == 16)
@@ -487,18 +487,18 @@ logerror("EEPROM write %04x to address %02x\n",data,address);
m_addrspace[0]->write_byte(address, data);
}
else
-logerror("Error: EEPROM is m_locked\n");
+ logerror("Error: EEPROM %s is locked\n", tag());
m_serial_count = 0;
}
else if ( command_match((char*)(m_serial_buffer),m_cmd_lock,strlen((char*)(m_serial_buffer))) )
{
-logerror("EEPROM lock\n");
+ logerror("EEPROM %s lock\n", tag());
m_locked = 1;
m_serial_count = 0;
}
else if ( command_match((char*)(m_serial_buffer),m_cmd_unlock,strlen((char*)(m_serial_buffer))) )
{
-logerror("EEPROM unlock\n");
+ logerror("EEPROM %s unlock\n", tag());
m_locked = 0;
m_serial_count = 0;
}