diff --git a/src/emu/device.ipp b/src/emu/device.ipp index fde4bafc1de..1501798f586 100644 --- a/src/emu/device.ipp +++ b/src/emu/device.ipp @@ -34,7 +34,7 @@ template inline void device_t::logerror(Format &&fmt, Params &&... args) const { if (m_machine) - m_machine->logerror(string_format("[%s] %s", std::forward(fmt)), std::forward(args)...); + m_machine->logerror(string_format("[%s] %s", tag(), std::forward(fmt)), std::forward(args)...); } -#endif // __DEVICE_IPP__ \ No newline at end of file +#endif // __DEVICE_IPP__