From b4ff58e924059a244c1750050c2d3b3bf9415b68 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 5 Oct 2008 10:40:46 +0000 Subject: [PATCH] Clear buffers before we start. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3248 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishtest/vtc_log.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/varnish-cache/bin/varnishtest/vtc_log.c b/varnish-cache/bin/varnishtest/vtc_log.c index 50715054..1401aacf 100644 --- a/varnish-cache/bin/varnishtest/vtc_log.c +++ b/varnish-cache/bin/varnishtest/vtc_log.c @@ -80,6 +80,7 @@ vtc_log(struct vtclog *vl, unsigned lvl, const char *fmt, ...) assert(lvl < NLEAD); if (lvl > vtc_verbosity) return; + vsb_clear(vl->vsb); vsb_printf(vl->vsb, "%s %-4s ", lead[lvl], vl->id); va_list ap; va_start(ap, fmt); @@ -107,6 +108,7 @@ vtc_dump(struct vtclog *vl, unsigned lvl, const char *pfx, const char *str) assert(lvl < NLEAD); if (lvl > vtc_verbosity) return; + vsb_clear(vl->vsb); if (pfx == NULL) pfx = ""; if (str == NULL) -- 2.39.5