mirror of
https://github.com/simh/simh.git
synced 2026-01-30 21:32:27 +00:00
More General cleanup migrate to using sim_printf vs separate calls to printf and fprintf(sim_log).
This commit is contained in:
@@ -1002,7 +1002,7 @@ else {
|
||||
if (nr <= 0)
|
||||
return SCPE_ARG;
|
||||
}
|
||||
printf ("Proposed format: records/track = %d, record size = %d\n", nr, nw);
|
||||
sim_printf ("Proposed format: records/track = %d, record size = %d\n", nr, nw);
|
||||
if (!get_yn ("Formatting will destroy all data on this disk; proceed? [N]", FALSE))
|
||||
return SCPE_OK;
|
||||
for (c = cntr = 0; c < dp_tab[dp_ctype].cyl; c++) {
|
||||
@@ -1021,7 +1021,7 @@ for (c = cntr = 0; c < dp_tab[dp_ctype].cyl; c++) {
|
||||
return r;
|
||||
}
|
||||
}
|
||||
printf ("Formatting complete\n");
|
||||
sim_printf ("Formatting complete\n");
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -395,7 +395,7 @@ else {
|
||||
if ((c = getc (uptr->fileref)) == EOF) { /* read byte */
|
||||
if (feof (uptr->fileref)) {
|
||||
if (ptr_stopioe)
|
||||
printf ("PTR end of file\n");
|
||||
sim_printf ("PTR end of file\n");
|
||||
else return SCPE_OK;
|
||||
}
|
||||
else perror ("PTR I/O error");
|
||||
@@ -686,7 +686,7 @@ else if ((ruptr->flags & UNIT_ATT) && /* TTR attached */
|
||||
if (feof (ruptr->fileref)) { /* EOF? */
|
||||
ruptr->STA &= ~RUNNING; /* stop reader */
|
||||
if (ttr_stopioe)
|
||||
printf ("TTR end of file\n");
|
||||
sim_printf ("TTR end of file\n");
|
||||
else return SCPE_OK;
|
||||
}
|
||||
else perror ("TTR I/O error");
|
||||
|
||||
Reference in New Issue
Block a user