mirror of
https://github.com/open-simh/simh.git
synced 2026-01-16 08:25:44 +00:00
SCP: Fix corner case formatting for long device name support
This commit is contained in:
parent
6c08fae048
commit
166852935d
5
scp.c
5
scp.c
@ -5921,10 +5921,13 @@ int32 toks = -1;
|
||||
fprintf (st, "%s", _sim_dname (dptr)); /* print dev name */
|
||||
if ((flag == 2) && dptr->description) {
|
||||
fprintf (st, "%s\n", dptr->description(dptr));
|
||||
fprintf (st, "%s", _sim_dname_space ());
|
||||
}
|
||||
else {
|
||||
if ((sim_switches & SWMASK ('D')) && dptr->description)
|
||||
if ((sim_switches & SWMASK ('D')) && dptr->description) {
|
||||
fprintf (st, "%s\n", dptr->description(dptr));
|
||||
fprintf (st, "%s", _sim_dname_space ());
|
||||
}
|
||||
}
|
||||
if (qdisable (dptr)) { /* disabled? */
|
||||
fprintf (st, "%s\n", "disabled");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user