summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/ds1302.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/ds1302.cpp')
-rw-r--r--src/devices/machine/ds1302.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/machine/ds1302.cpp b/src/devices/machine/ds1302.cpp
index 108d4740c0c..c2cd23b560f 100644
--- a/src/devices/machine/ds1302.cpp
+++ b/src/devices/machine/ds1302.cpp
@@ -72,7 +72,7 @@ const device_type DS1302 = &device_creator<ds1302_device>;
// ds1302_device - constructor
//-------------------------------------------------
-ds1302_device::ds1302_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock)
+ds1302_device::ds1302_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, DS1302, "DS1302", tag, owner, clock, "ds1302", __FILE__),
device_rtc_interface(mconfig, *this),
device_nvram_interface(mconfig, *this)
@@ -191,7 +191,7 @@ void ds1302_device::rtc_clock_updated(int year, int month, int day, int day_of_w
WRITE_LINE_MEMBER( ds1302_device::ce_w )
{
- if (LOG) logerror("DS1302 '%s' CE: %u\n", tag().c_str(), state);
+ if (LOG) logerror("DS1302 '%s' CE: %u\n", tag(), state);
if (!state && m_ce)
{
@@ -224,26 +224,26 @@ void ds1302_device::load_shift_register()
{
m_data = m_ram[m_addr];
- if (LOG) logerror("DS1302 '%s' Read RAM %u:%02x\n", tag().c_str(), m_addr, m_data);
+ if (LOG) logerror("DS1302 '%s' Read RAM %u:%02x\n", tag(), m_addr, m_data);
}
else
{
m_data = m_user[m_addr];
- if (LOG) logerror("DS1302 '%s' Read Clock %u:%02x\n", tag().c_str(), m_addr, m_data);
+ if (LOG) logerror("DS1302 '%s' Read Clock %u:%02x\n", tag(), m_addr, m_data);
}
}
else
{
if (COMMAND_RAM)
{
- if (LOG) logerror("DS1302 '%s' Write RAM %u:%02x\n", tag().c_str(), m_addr, m_data);
+ if (LOG) logerror("DS1302 '%s' Write RAM %u:%02x\n", tag(), m_addr, m_data);
m_ram[m_addr] = m_data;
}
else if (m_addr < 9)
{
- if (LOG) logerror("DS1302 '%s' Write Clock %u:%02x\n", tag().c_str(), m_addr, m_data);
+ if (LOG) logerror("DS1302 '%s' Write Clock %u:%02x\n", tag(), m_addr, m_data);
m_reg[m_addr] = m_data;
}
@@ -266,7 +266,7 @@ void ds1302_device::input_bit()
if (m_bits == 8)
{
- if (LOG) logerror("DS1302 '%s' Command: %02x\n", tag().c_str(), m_cmd);
+ if (LOG) logerror("DS1302 '%s' Command: %02x\n", tag(), m_cmd);
m_bits = 0;
m_addr = (m_cmd >> 1) & 0x1f;
@@ -303,7 +303,7 @@ void ds1302_device::input_bit()
if (m_bits == 8)
{
- if (LOG) logerror("DS1302 '%s' Data: %02x\n", tag().c_str(), m_data);
+ if (LOG) logerror("DS1302 '%s' Data: %02x\n", tag(), m_data);
m_bits = 0;
@@ -374,7 +374,7 @@ void ds1302_device::output_bit()
WRITE_LINE_MEMBER( ds1302_device::sclk_w )
{
- if (LOG) logerror("DS1302 '%s' CLK: %u\n", tag().c_str(), state);
+ if (LOG) logerror("DS1302 '%s' CLK: %u\n", tag(), state);
if (!m_ce) return;
@@ -397,7 +397,7 @@ WRITE_LINE_MEMBER( ds1302_device::sclk_w )
WRITE_LINE_MEMBER( ds1302_device::io_w )
{
- if (LOG) logerror("DS1302 '%s' I/O: %u\n", tag().c_str(), state);
+ if (LOG) logerror("DS1302 '%s' I/O: %u\n", tag(), state);
m_io = state;
}