X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/e8eb3afba50cbec8d1aeabcf85a06084977d54cd..39a9d9d85d0f2289d8c1257251311b7cf959c700:/uip/mhparam.c?ds=inline diff --git a/uip/mhparam.c b/uip/mhparam.c index c52410c0..fb457848 100644 --- a/uip/mhparam.c +++ b/uip/mhparam.c @@ -196,10 +196,10 @@ main(int argc, char **argv) struct node *np; if (compp) - advise(NULL, "profile-components ignored with -all"); + inform("profile-components ignored with -all"); if (components >= 0) - advise(NULL, "-%scomponents ignored with -all", + inform("-%scomponents ignored with -all", components ? "" : "no"); /* Print all entries in context/profile list. That does not @@ -207,7 +207,9 @@ main(int argc, char **argv) for (np = m_defs; np; np = np->n_next) printf("%s: %s\n", np->n_name, np->n_field); - } else if (debug) { + } + + if (debug) { struct proc *ps; /* In case datalocking was set in profile. */ @@ -230,7 +232,9 @@ main(int argc, char **argv) for (ps = procs; ps->p_name; ps++) printf ("%s: %s\n", ps->p_name, *ps->p_field ? *ps->p_field : ""); - } else { + } + + if (! all) { if (components < 0) components = compp > 1;