From: phk Date: Thu, 10 Jul 2008 21:55:48 +0000 (+0000) Subject: Make the vcl.list use the same layout in stopped mode as in started mode. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c93d9f3ce5dc190200aa8ccdfceb98512f8ee9a3;p=varnish Make the vcl.list use the same layout in stopped mode as in started mode. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2933 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/mgt_vcc.c b/varnish-cache/bin/varnishd/mgt_vcc.c index ba7dd154..d9c9fcd4 100644 --- a/varnish-cache/bin/varnishd/mgt_vcc.c +++ b/varnish-cache/bin/varnishd/mgt_vcc.c @@ -674,6 +674,7 @@ mcf_config_list(struct cli *cli, const char * const *av, void *priv) { unsigned status; char *p; + const char *flg; struct vclprog *vp; (void)av; @@ -686,9 +687,12 @@ mcf_config_list(struct cli *cli, const char * const *av, void *priv) free(p); } else { VTAILQ_FOREACH(vp, &vclhead, list) { - cli_out(cli, "%s %6s %s\n", - vp->active ? "*" : " ", - "N/A", vp->name); + if (vp->active) { + flg = "active"; + } else + flg = "available"; + cli_out(cli, "%-10s %6s %s\n", + flg, "N/A", vp->name); } } }