Added useful diagnostic when restore operation fails due to inability to attach a device
This commit is contained in:
parent
a8a5a5b74f
commit
f84c6109de
1 changed files with 3 additions and 1 deletions
4
scp.c
4
scp.c
|
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue