From 14d07f575231658aef2630987be650eb0adca063 Mon Sep 17 00:00:00 2001 From: Richard Cornwell Date: Tue, 23 Jun 2020 19:27:17 -0400 Subject: [PATCH] I7000: Replaced fprintf with sim_printf. --- I7000/i7000_dsk.c | 4 ++-- I7000/i7000_mt.c | 6 +----- I7000/i7090_cpu.c | 3 +-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/I7000/i7000_dsk.c b/I7000/i7000_dsk.c index e51c3c1..c9def51 100644 --- a/I7000/i7000_dsk.c +++ b/I7000/i7000_dsk.c @@ -1391,8 +1391,8 @@ disk_write(UNIT * uptr, uint8 data, int chan, int eor) data &= (sense[schan] & STAT_SIXBIT)?077:0277; if (uptr->u5 & DSKSTA_CHECK) { if (dbuffer[u][uptr->u6++] != data) { - fprintf(stderr, "Mismatch %d %03o != %03o\n\r", - uptr->u6-1, dbuffer[u][uptr->u6-1], data); + sim_printf("Mismatch %d %03o != %03o\n\r", + uptr->u6-1, dbuffer[u][uptr->u6-1], data); disk_posterr(uptr, DATA_CHECK); } } else { diff --git a/I7000/i7000_mt.c b/I7000/i7000_mt.c index 3cc95de..fa4ab9e 100644 --- a/I7000/i7000_mt.c +++ b/I7000/i7000_mt.c @@ -381,9 +381,6 @@ uint32 mt_cmd(UNIT * uptr, uint16 cmd, uint16 dev) uptr += unit; /* If unit disabled return error */ if (uptr->flags & UNIT_DIS) { - /* - fprintf(stderr, "Attempt to access disconnected unit %s%d\n", - dptr->name, unit); */ return SCPE_NODEV; } @@ -396,8 +393,7 @@ uint32 mt_cmd(UNIT * uptr, uint16 cmd, uint16 dev) /* If drive is offline or not attached return not ready */ if ((uptr->flags & (UNIT_ATT | MTUF_ONLINE)) != (UNIT_ATT | MTUF_ONLINE)) { - fprintf(stderr, "Attempt to access offline unit %s%d\n\r", - dptr->name, unit); + sim_printf("Attempt to access offline unit %s%d\n\r", dptr->name, unit); return SCPE_IOERR; } /* Check if drive is ready to recieve a command */ diff --git a/I7000/i7090_cpu.c b/I7000/i7090_cpu.c index e47547a..60f27d2 100644 --- a/I7000/i7090_cpu.c +++ b/I7000/i7090_cpu.c @@ -4126,8 +4126,7 @@ prottrap: #endif default: - fprintf(stderr, "Invalid opcode %o IC=%o %012llo\n", - opcode, IC, temp); + sim_printf("Invalid opcode %o IC=%o %012llo\n", opcode, IC, temp); reason = STOP_UUO; break; }