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) { if (r == SCPE_OK) {
dptr = find_dev_from_unit (attunits[j]); dptr = find_dev_from_unit (attunits[j]);
sim_switches = attswitches[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]); free (attnames[j]);
} }