mirror of
https://github.com/open-simh/simh.git
synced 2026-01-25 11:55:43 +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:
@@ -215,9 +215,7 @@ for (i=0; i<serial_open_device_count; ++i)
|
||||
|
||||
static void sim_error_serial (char *routine, int error)
|
||||
{
|
||||
fprintf (stderr, "Serial: %s fails with error %d\n", routine, error);
|
||||
if (sim_deb)
|
||||
fprintf (sim_deb, "Serial: %s fails with error %d\n", routine, error);
|
||||
sim_printf ("Serial: %s fails with error %d\n", routine, error);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user