1
0
mirror of https://github.com/simh/simh.git synced 2026-03-01 17:36:49 +00:00

Added useful diagnostic when restore operation fails due to inability to attach a device

This commit is contained in:
Mark Pizzolato
2011-10-31 10:25:11 -07:00
parent a8a5a5b74f
commit f84c6109de

4
scp.c
View File

@@ -2961,7 +2961,9 @@ for (j=0, r = SCPE_OK; j<attcnt; j++) {
if (r == SCPE_OK) {
dptr = find_dev_from_unit (attunits[j]);
sim_switches = attswitches[j];
r = scp_attach_unit (dptr, attunits[j], attnames[j]); /* reattach unit */
r = scp_attach_unit (dptr, attunits[j], attnames[j]);/* reattach unit */
if (r != SCPE_OK)
printf ("Error Attaching %s to %s\n", sim_dname (dptr), attnames[j]);
}
free (attnames[j]);
}