diff --git a/sim_disk.c b/sim_disk.c index eb62b612..811e906e 100644 --- a/sim_disk.c +++ b/sim_disk.c @@ -910,11 +910,12 @@ if (sim_switches & SWMASK ('C')) { /* create vhd disk & cop uptr->flags = saved_unit_flags; } } - if (!sim_quiet) + if (!sim_quiet) { if (r == SCPE_OK) printf ("\n%s%d: Copied %dMB. Done.\n", sim_dname (dptr), (int)(uptr-dptr->units), (int)(((t_addr)lba*sector_size)/1000000)); else printf ("\n%s%d: Error copying: %s.\n", sim_dname (dptr), (int)(uptr-dptr->units), sim_error_text (r)); + } free (copy_buf); sim_vhd_disk_close (vhd); sim_disk_detach (uptr); diff --git a/sim_timer.c b/sim_timer.c index eeb2bb96..d813c615 100644 --- a/sim_timer.c +++ b/sim_timer.c @@ -523,8 +523,9 @@ else timedout = TRUE; sim_idle_wait = FALSE; pthread_mutex_unlock (&sim_asynch_lock); -if (!timedout) +if (!timedout) { AIO_UPDATE_QUEUE; + } return sim_os_msec() - start_time; } #define SIM_IDLE_MS_SLEEP sim_idle_ms_sleep @@ -637,8 +638,9 @@ if (sim_asynch_enabled && sim_asynch_timer) new_currd = rtc_currd[tmr]/10; rtc_currd[tmr] = new_currd; rtc_gtime[tmr] = new_gtime; /* save instruction time */ - if (rtc_currd[tmr] == 127) + if (rtc_currd[tmr] == 127) { sim_debug (DBG_CAL, &sim_timer_dev, "asynch calibration small: %d\n", rtc_currd[tmr]); + } sim_debug (DBG_CAL, &sim_timer_dev, "asynch calibration result: %d\n", rtc_currd[tmr]); return rtc_currd[tmr]; /* calibrated result */ }