From eea6eceaa918b9d8e8463cb194231991f58c9955 Mon Sep 17 00:00:00 2001 From: Bill Beech Date: Mon, 27 Aug 2018 15:33:05 -0700 Subject: [PATCH] SWTP: Improve error messages --- swtp6800/common/dc-4.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/swtp6800/common/dc-4.c b/swtp6800/common/dc-4.c index f7891fa5..5a3f1f6b 100644 --- a/swtp6800/common/dc-4.c +++ b/swtp6800/common/dc-4.c @@ -393,12 +393,12 @@ int32 fdcdrv(int32 io, int32 data) pos, (unsigned int) pos); err = sim_fseek(dsk_unit[cur_dsk].fileref, pos, SEEK_SET); /* seek to offset */ if (err) { - sim_printf("\nfdccmd: File error read sir seek\n"); + sim_printf("\nfdccmd: Seek error read in SIR\n"); return SCPE_IOERR; } err = sim_fread(dsk_unit[cur_dsk].filebuf, SECT_SIZE, 1, dsk_unit[cur_dsk].fileref); /* read in buffer */ if (err != 1) { - sim_printf("\nfdccmd: File error read SIR\n"); + sim_printf("\nfdccmd: File error read in SIR\n"); return SCPE_IOERR; } dsk_unit[cur_dsk].u3 |= BUSY | DRQ; /* set DRQ & BUSY */ @@ -444,12 +444,12 @@ int32 fdccmd(int32 io, int32 data) pos, (unsigned int) pos); err = sim_fseek(dsk_unit[cur_dsk].fileref, pos, SEEK_SET); /* seek to offset */ if (err) { - sim_printf("\nfdccmd: File error read seek\n"); + sim_printf("\nfdccmd: Seek error in read command\n"); return SCPE_IOERR; } err = sim_fread(dsk_unit[cur_dsk].filebuf, SECT_SIZE, 1, dsk_unit[cur_dsk].fileref); /* read in buffer */ if (err != 1) { - sim_printf("\nfdccmd: File error read\n"); + sim_printf("\nfdccmd: File error in read command\n"); return SCPE_IOERR; } dsk_unit[cur_dsk].u3 |= BUSY | DRQ; /* set DRQ & BUSY */ @@ -467,7 +467,7 @@ int32 fdccmd(int32 io, int32 data) pos, (unsigned int) pos); err = sim_fseek(dsk_unit[cur_dsk].fileref, pos, SEEK_SET); /* seek to offset */ if (err) { - sim_printf("\nfdccmd: File error write seek\n"); + sim_printf("\nfdccmd: Seek error in write command\n"); return SCPE_IOERR; } wrt_flag = 1; /* set write flag */