diff options
Diffstat (limited to 'src/devices/machine/timekpr.cpp')
-rw-r--r-- | src/devices/machine/timekpr.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/devices/machine/timekpr.cpp b/src/devices/machine/timekpr.cpp index aa7febbf9d4..c9db679e13c 100644 --- a/src/devices/machine/timekpr.cpp +++ b/src/devices/machine/timekpr.cpp @@ -18,6 +18,12 @@ #include "machine/timekpr.h" #include "machine/timehelp.h" +#define LOG_GENERAL (1U << 0) +#define LOG_TICKS (1U << 1) + +#define VERBOSE (0) +#include "logmacro.h" + // device type definition DEFINE_DEVICE_TYPE(M48T02, m48t02_device, "m48t02", "M48T02 Timekeeper") DEFINE_DEVICE_TYPE(M48T35, m48t35_device, "m48t35", "M48T35 Timekeeper") @@ -274,7 +280,7 @@ void timekeeper_device::counters_from_ram() void timekeeper_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) { - logerror("Tick\n"); + LOGMASKED(LOG_TICKS, "Tick\n"); if( ( m_seconds & SECONDS_ST ) != 0 || ( m_control & CONTROL_W ) != 0 ) { @@ -370,7 +376,7 @@ WRITE8_MEMBER(timekeeper_device::watchdog_write) WRITE8_MEMBER( timekeeper_device::write ) { - logerror("timekeeper_device::write: %04x = %02x\n", offset, data); + LOGMASKED(LOG_GENERAL, "timekeeper_device::write: %04x = %02x\n", offset, data); if( offset == m_offset_control ) { if( ( m_control & CONTROL_W ) != 0 && @@ -429,7 +435,7 @@ READ8_MEMBER( timekeeper_device::read ) m_reset_cb(CLEAR_LINE); m_irq_cb(CLEAR_LINE); } - logerror("timekeeper_device::read: %04x (%02x)\n", offset, result); + LOGMASKED(LOG_GENERAL, "timekeeper_device::read: %04x (%02x)\n", offset, result); return result; } |