1
0
mirror of https://github.com/simh/simh.git synced 2026-05-03 06:28:41 +00:00

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-22 17:12:14 -07:00
parent 593a5950d1
commit 3256c10c77
12 changed files with 34 additions and 89 deletions

View File

@@ -2108,9 +2108,7 @@ return SCPE_OK;
t_stat cpu_set_opt1 (UNIT *uptr, int32 val, char *cptr, void *desc)
{
if (cpu_unit.flags & IF_MII) {
printf ("Feature is standard on 1620 Model 2\n");
if (sim_log)
fprintf (sim_log, "Feature is standard on 1620 Model 2\n");
sim_printf ("Feature is standard on 1620 Model 2\n");
return SCPE_NOFNC;
}
return SCPE_OK;
@@ -2121,9 +2119,7 @@ return SCPE_OK;
t_stat cpu_set_opt2 (UNIT *uptr, int32 val, char *cptr, void *desc)
{
if (!(cpu_unit.flags & IF_MII)) {
printf ("Feature is not available on 1620 Model 1\n");
if (sim_log)
fprintf (sim_log, "Feature is not available on 1620 Model 1\n");
sim_printf ("Feature is not available on 1620 Model 1\n");
return SCPE_NOFNC;
}
return SCPE_OK;