summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/isa/3c505.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/isa/3c505.cpp')
-rw-r--r--src/devices/bus/isa/3c505.cpp22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/devices/bus/isa/3c505.cpp b/src/devices/bus/isa/3c505.cpp
index 2cb640e91d5..371526d29ee 100644
--- a/src/devices/bus/isa/3c505.cpp
+++ b/src/devices/bus/isa/3c505.cpp
@@ -26,8 +26,6 @@ static int verbose = VERBOSE;
#define LOG1(d,x) { if (verbose > 0) LOG(d,x)}
#define LOG2(d,x) { if (verbose > 1) LOG(d,x)}
-#define MAINCPU "maincpu"
-
#ifdef LSB_FIRST
static UINT16 uint16_to_le(UINT16 value)
{
@@ -424,7 +422,7 @@ const char *threecom3c505_device::cpu_context()
{
static char statebuf[64]; /* string buffer containing state description */
- device_t *cpu = machine().device(MAINCPU);
+ device_t *cpu = machine().firstcpu;
osd_ticks_t t = osd_ticks();
int s = t / osd_ticks_per_second();
int ms = (t % osd_ticks_per_second()) / 1000;
@@ -442,6 +440,18 @@ const char *threecom3c505_device::cpu_context()
return statebuf;
}
+/*-------------------------------------------------
+ logerror - log an error message (w/o device tags)
+ -------------------------------------------------*/
+
+void threecom3c505_device::logerror(const char *format, ...) const
+{
+ va_list arg;
+ va_start(arg, format);
+ machine().vlogerror(format, arg);
+ va_end(arg);
+}
+
//**************************************************************************
// data_buffer
//**************************************************************************
@@ -855,8 +865,8 @@ void threecom3c505_device::do_receive_command()
void threecom3c505_device::set_command_pending(int state)
{
- LOG2(this,("set_command_pending %d -> %d m_wait_for_ack=%d m_wait_for_nak=%d m_rx_pending=%d%s",
- m_command_pending, state, m_wait_for_ack, m_wait_for_nak, m_rx_pending, state ? "" :"\n"));
+ LOG2(this,("set_command_pending %d -> %d m_wait_for_ack=%d m_wait_for_nak=%d m_rx_pending=%d",
+ m_command_pending, state, m_wait_for_ack, m_wait_for_nak, m_rx_pending));
//- verbose = onoff ? 1 : 2;
@@ -1657,7 +1667,7 @@ void threecom3c505_device::set_verbose(int on_off)
int threecom3c505_device::tx_data(device_t *device, const UINT8 data[], int length)
{
- LOG1(device,("threecom3c505_device::tx_data length=%d", length));
+ LOG1(this,("threecom3c505_device::tx_data length=%d", length));
return 1;
}