SCP: Fix corner case formatting for long device name support
This commit is contained in:
parent
6c08fae048
commit
166852935d
1 changed files with 4 additions and 1 deletions
5
scp.c
5
scp.c
|
@ -5921,10 +5921,13 @@ int32 toks = -1;
|
||||||
fprintf (st, "%s", _sim_dname (dptr)); /* print dev name */
|
fprintf (st, "%s", _sim_dname (dptr)); /* print dev name */
|
||||||
if ((flag == 2) && dptr->description) {
|
if ((flag == 2) && dptr->description) {
|
||||||
fprintf (st, "%s\n", dptr->description(dptr));
|
fprintf (st, "%s\n", dptr->description(dptr));
|
||||||
|
fprintf (st, "%s", _sim_dname_space ());
|
||||||
}
|
}
|
||||||
else {
|
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\n", dptr->description(dptr));
|
||||||
|
fprintf (st, "%s", _sim_dname_space ());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (qdisable (dptr)) { /* disabled? */
|
if (qdisable (dptr)) { /* disabled? */
|
||||||
fprintf (st, "%s\n", "disabled");
|
fprintf (st, "%s\n", "disabled");
|
||||||
|
|
Loading…
Add table
Reference in a new issue