[master] 0046616 fix garbled output for backend.list [-v|-p]
Nils Goroll
nils.goroll at uplex.de
Wed May 2 15:54:08 UTC 2018
commit 0046616ce918d3eae71068b1569e234df482b157
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Wed May 2 15:21:22 2018 +0200
fix garbled output for backend.list [-v|-p]
diff --git a/bin/varnishd/cache/cache_backend.c b/bin/varnishd/cache/cache_backend.c
index 88a28cd..982183b 100644
--- a/bin/varnishd/cache/cache_backend.c
+++ b/bin/varnishd/cache/cache_backend.c
@@ -420,7 +420,7 @@ vbe_list(const struct director *d, struct vsb *vsb, int vflag, int pflag)
if (bp->probe != NULL)
VBP_Status(vsb, bp, vflag | pflag);
- else
+ else if ((vflag | pflag) == 0)
VSB_printf(vsb, "%-10s", d->sick ? "sick" : "healthy");
}
More information about the varnish-commit
mailing list