SCP: Fix display of multi-bit masks and HELP dev SET output
This commit is contained in:
parent
d28834fbbf
commit
522287cb8e
1 changed files with 9 additions and 3 deletions
12
scp.c
12
scp.c
|
@ -2375,7 +2375,10 @@ if (dptr->modifiers) {
|
|||
if (mptr->mstring) {
|
||||
fprint_header (st, &found, header);
|
||||
sprintf (buf, "set %s %s%s", sim_dname (dptr), mptr->mstring, (strchr(mptr->mstring, '=')) ? "" : (MODMASK(mptr,MTAB_VALR) ? "=val" : (MODMASK(mptr,MTAB_VALO) ? "{=val}" : "")));
|
||||
fprintf (st, "%-30s\t%s\n", buf, (strchr(mptr->mstring, '=')) ? "" : (mptr->help ? mptr->help : ""));
|
||||
if ((strlen (buf) < 30) || (!mptr->help))
|
||||
fprintf (st, "%-30s\t%s\n", buf, mptr->help ? mptr->help : "");
|
||||
else
|
||||
fprintf (st, "%s\n%-30s\t%s\n", buf, "", mptr->help);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -4758,9 +4761,12 @@ if (dptr->flags & DEV_DEBUG) {
|
|||
else if (dptr->debflags == NULL)
|
||||
fputs ("Debugging enabled", st);
|
||||
else {
|
||||
uint32 dctrl = dptr->dctrl;
|
||||
|
||||
fputs ("Debug=", st);
|
||||
for (dep = dptr->debflags; dep->name != NULL; dep++) {
|
||||
if ((dptr->dctrl & dep->mask) == dep->mask) {
|
||||
for (dep = dptr->debflags; (dctrl != 0) && (dep->name != NULL); dep++) {
|
||||
if ((dctrl & dep->mask) == dep->mask) {
|
||||
dctrl &= ~dep->mask;
|
||||
if (any)
|
||||
fputc (';', st);
|
||||
fputs (dep->name, st);
|
||||
|
|
Loading…
Add table
Reference in a new issue