1
0
mirror of https://github.com/simh/simh.git synced 2026-01-14 23:55:06 +00:00

SCP: Cleanup SET ASYNC/NOASYNC status message to use sim_messagef

This commit is contained in:
Mark Pizzolato 2024-04-18 16:36:43 -10:00
parent d71ce79d13
commit c16e379b73

12
scp.c
View File

@ -6158,17 +6158,9 @@ if (1) {
}
}
}
if (!sim_quiet)
fprintf (stdout, "Asynchronous I/O %sabled\n", sim_asynch_enabled ? "en" : "dis");
if ((!sim_oline) && sim_log)
fprintf (sim_log, "Asynchronous I/O %sabled\n", sim_asynch_enabled ? "en" : "dis");
return SCPE_OK;
return sim_messagef (SCPE_OK, "Asynchronous I/O %sabled\n", sim_asynch_enabled ? "en" : "dis");
#else
if (!sim_quiet)
fprintf (stdout, "Asynchronous I/O is not available in this simulator\n");
if ((!sim_oline) && sim_log)
fprintf (sim_log, "Asynchronous I/O is not available in this simulator\n");
return SCPE_NOFNC;
return sim_messagef (SCPE_NOFNC, "Asynchronous I/O is not available in this simulator\n");
#endif
}