mirror of
https://github.com/simh/simh.git
synced 2026-02-11 02:31:35 +00:00
More General cleanup migrate to using sim_printf vs separate calls to printf and fprintf(sim_log).
This commit is contained in:
@@ -332,8 +332,9 @@ do {
|
||||
if ((temp = getc (ptr_unit.fileref)) == EOF) { /* read char */
|
||||
ind[IN_RDCHK] = 1; /* err, rd chk */
|
||||
if (feof (ptr_unit.fileref))
|
||||
printf ("PTR end of file\n");
|
||||
else perror ("PTR I/O error");
|
||||
sim_printf ("PTR end of file\n");
|
||||
else
|
||||
sim_printf ("PTR I/O error: %d\n", errno);
|
||||
clearerr (ptr_unit.fileref);
|
||||
return SCPE_IOERR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user