mirror of
https://github.com/simh/simh.git
synced 2026-02-04 07:34:02 +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:
@@ -366,7 +366,7 @@ if ((uptr->flags & UNIT_ATT) == 0) { /* attached? */
|
||||
ios = 0;
|
||||
return SCPE_IOERR;
|
||||
}
|
||||
else perror ("PETR I/O error");
|
||||
else sim_perror ("PETR I/O error");
|
||||
clearerr (uptr->fileref);
|
||||
ios = 0;
|
||||
return SCPE_IOERR;
|
||||
@@ -533,7 +533,7 @@ t_stat ptp_svc (UNIT *uptr)
|
||||
if ((uptr->flags & UNIT_ATT) == 0) /* not attached? */
|
||||
return SCPE_UNATT;
|
||||
if (putc (uptr->buf, uptr->fileref) == EOF) { /* I/O error? */
|
||||
perror ("PTP I/O error");
|
||||
sim_perror ("PTP I/O error");
|
||||
clearerr (uptr->fileref);
|
||||
return SCPE_IOERR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user