diff --git a/scp.c b/scp.c index f65840e7..c2a5ba93 100644 --- a/scp.c +++ b/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);