diff options
Diffstat (limited to 'src/devices/machine/i2cmem.cpp')
-rw-r--r-- | src/devices/machine/i2cmem.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/machine/i2cmem.cpp b/src/devices/machine/i2cmem.cpp index b345dd3817b..d77e12ef4be 100644 --- a/src/devices/machine/i2cmem.cpp +++ b/src/devices/machine/i2cmem.cpp @@ -49,7 +49,7 @@ static inline void ATTR_PRINTF( 3, 4 ) verboselog( device_t *device, int n_level va_start( v, s_fmt ); vsprintf( buf, s_fmt, v ); va_end( v ); - device->logerror( "%s: I2CMEM(%s) %s", device->machine().describe_context( ), device->tag().c_str(), buf ); + device->logerror( "%s: I2CMEM(%s) %s", device->machine().describe_context( ), device->tag(), buf ); } } @@ -74,7 +74,7 @@ ADDRESS_MAP_END // i2cmem_device - constructor //------------------------------------------------- -i2cmem_device::i2cmem_device( const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock ) +i2cmem_device::i2cmem_device( const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock ) : device_t(mconfig, I2CMEM, "I2C Memory", tag, owner, clock, "i2cmem", __FILE__), device_memory_interface(mconfig, *this), device_nvram_interface(mconfig, *this), @@ -183,12 +183,12 @@ void i2cmem_device::nvram_default() { if( m_region->bytes() != i2cmem_bytes ) { - fatalerror( "i2cmem region '%s' wrong size (expected size = 0x%X)\n", tag().c_str(), i2cmem_bytes ); + fatalerror( "i2cmem region '%s' wrong size (expected size = 0x%X)\n", tag(), i2cmem_bytes ); } if( m_region->bytewidth() != 1 ) { - fatalerror( "i2cmem region '%s' needs to be an 8-bit region\n", tag().c_str() ); + fatalerror( "i2cmem region '%s' needs to be an 8-bit region\n", tag() ); } UINT8 *default_data = m_region->base(); |