mirror of
https://github.com/simh/simh.git
synced 2026-01-26 04:01:38 +00:00
All: Convert from C runtime library perror() to sim_perror so that all messages will arrive in the same place(s).
This commit is contained in:
@@ -734,7 +734,7 @@ if (lpbc) /* intr, but not done */
|
||||
update_lpcs (CSA_MBZ);
|
||||
else update_lpcs (CSA_DONE); /* intr and done */
|
||||
if ((fnc == FNC_PR) && ferror (lp20_unit.fileref)) {
|
||||
perror ("LP I/O error");
|
||||
sim_perror ("LP I/O error");
|
||||
clearerr (uptr->fileref);
|
||||
return SCPE_IOERR;
|
||||
}
|
||||
|
||||
@@ -1024,7 +1024,7 @@ switch (uptr->FUNC) { /* case on function */
|
||||
if (err != 0) { /* error? */
|
||||
set_rper (ER1_PAR, drv); /* set drive error */
|
||||
update_rpcs (CS1_DONE | CS1_TRE, drv); /* set done, err */
|
||||
perror ("RP I/O error");
|
||||
sim_perror ("RP I/O error");
|
||||
clearerr (uptr->fileref);
|
||||
return SCPE_IOERR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user