[master] 71dfce8 Only explicitly show param default if it not set to that default
Poul-Henning Kamp
phk at FreeBSD.org
Fri May 22 11:58:00 CEST 2015
commit 71dfce8866947639f38953b834a014c520a82725
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri May 22 09:21:33 2015 +0000
Only explicitly show param default if it not set to that default
diff --git a/bin/varnishd/mgt/mgt_param.c b/bin/varnishd/mgt/mgt_param.c
index 4f6e5b8..bead46b 100644
--- a/bin/varnishd/mgt/mgt_param.c
+++ b/bin/varnishd/mgt/mgt_param.c
@@ -245,8 +245,9 @@ mcf_param_show(struct cli *cli, const char * const *av, void *priv)
VCLI_Out(cli, " (default)");
VCLI_Out(cli, "\n");
if (lfmt) {
- VCLI_Out(cli, "%-*sDefault is: %s\n",
- margin1, "", pp->def);
+ if (pp->def != NULL && strcmp(pp->def, VSB_data(vsb)))
+ VCLI_Out(cli, "%-*sDefault is: %s\n",
+ margin1, "", pp->def);
if (pp->min != NULL)
VCLI_Out(cli, "%-*sMinimum is: %s\n",
margin1, "", pp->min);
More information about the varnish-commit
mailing list