mirror of
https://github.com/simh/simh.git
synced 2026-02-22 07:08:21 +00:00
SCP: Added generic output routine sim_printf to output to stdout and sim_log (and sim_deb when enabled)
The goals here being to simplify calling code while getting consistent output delivered everywhere it may be useful. Modified most places which explicitly used sim_log or merely called printf to now avoid doing that and merely call sim_printf().
This commit is contained in:
@@ -1499,12 +1499,9 @@ for (i = 0; (dptr = sim_devices[i]) != NULL; i++) { /* add devices */
|
||||
for (j = 0; j < dibp->num; j++) { /* loop thru disp */
|
||||
if (dibp->dsp[j]) { /* any dispatch? */
|
||||
if (dev_tab[dibp->dev + j]) { /* already filled? */
|
||||
printf ("%s device number conflict at %02o\n",
|
||||
sim_dname (dptr), dibp->dev + j);
|
||||
if (sim_log)
|
||||
fprintf (sim_log, "%s device number conflict at %02o\n",
|
||||
sim_dname (dptr), dibp->dev + j);
|
||||
return TRUE;
|
||||
sim_printf ("%s device number conflict at %02o\n",
|
||||
sim_dname (dptr), dibp->dev + j);
|
||||
return TRUE;
|
||||
}
|
||||
dev_tab[dibp->dev + j] = dibp->dsp[j]; /* fill */
|
||||
} /* end if dsp */
|
||||
|
||||
Reference in New Issue
Block a user