1
0
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:
Mark Pizzolato
2014-10-24 14:37:37 -07:00
parent ebf53c9cda
commit 995ab8f1e2
23 changed files with 118 additions and 117 deletions

View File

@@ -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;
}