mirror of
https://github.com/simh/simh.git
synced 2026-04-14 07:50:15 +00:00
General cleanup migrate to using sim_printf vs separate calls to printf and fprintf(sim_log).
This commit is contained in:
@@ -3044,9 +3044,7 @@ static t_bool caveats_displayed = FALSE;
|
||||
|
||||
if (!caveats_displayed) {
|
||||
caveats_displayed = TRUE;
|
||||
printf ("%s", cpu_next_caveats);
|
||||
if (sim_log)
|
||||
fprintf (sim_log, "%s", cpu_next_caveats);
|
||||
sim_printf ("%s", cpu_next_caveats);
|
||||
}
|
||||
if (SCPE_OK != get_aval (PC, &cpu_dev, &cpu_unit)) /* get data */
|
||||
return FALSE;
|
||||
|
||||
@@ -2588,25 +2588,19 @@ BUFFER *dmc_buffer_allocate(CTLR *controller)
|
||||
BUFFER *buffer = (BUFFER *)remqueue (controller->free_queue->hdr.next);
|
||||
|
||||
if (!buffer) {
|
||||
fprintf (stdout, "DDCMP Buffer allocation failure.\n");
|
||||
fprintf (stdout, "This is a fatal error which should never happen.\n");
|
||||
fprintf (stdout, "Please submit this output when you report this bug.\n");
|
||||
sim_printf ("DDCMP Buffer allocation failure.\n");
|
||||
sim_printf ("This is a fatal error which should never happen.\n");
|
||||
sim_printf ("Please submit this output when you report this bug.\n");
|
||||
dmc_showqueues (stdout, controller->unit, 0, NULL);
|
||||
dmc_showstats (stdout, controller->unit, 0, NULL);
|
||||
dmc_showddcmp (stdout, controller->unit, 0, NULL);
|
||||
if (sim_log) {
|
||||
fprintf (sim_log, "DDCMP Buffer allocation failure.\n");
|
||||
fprintf (sim_log, "This is a fatal error which should never happen.\n");
|
||||
fprintf (sim_log, "Please submit this output when you report this bug.\n");
|
||||
dmc_showqueues (sim_log, controller->unit, 0, NULL);
|
||||
dmc_showstats (sim_log, controller->unit, 0, NULL);
|
||||
dmc_showddcmp (sim_log, controller->unit, 0, NULL);
|
||||
fflush (sim_log);
|
||||
}
|
||||
if (sim_deb) {
|
||||
fprintf (sim_deb, "DDCMP Buffer allocation failure.\n");
|
||||
fprintf (sim_deb, "This is a fatal error which should never happen.\n");
|
||||
fprintf (sim_deb, "Please submit this output when you report this bug.\n");
|
||||
dmc_showqueues (sim_deb, controller->unit, 0, NULL);
|
||||
dmc_showstats (sim_deb, controller->unit, 0, NULL);
|
||||
dmc_showddcmp (sim_deb, controller->unit, 0, NULL);
|
||||
|
||||
Reference in New Issue
Block a user