From c16e379b73476603df9b563701f1720656573d00 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 18 Apr 2024 16:36:43 -1000 Subject: [PATCH] SCP: Cleanup SET ASYNC/NOASYNC status message to use sim_messagef --- scp.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/scp.c b/scp.c index d14d89aa..0b22fabd 100644 --- a/scp.c +++ b/scp.c @@ -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 }