From: phk Date: Sun, 5 Oct 2008 10:40:46 +0000 (+0000) Subject: Clear buffers before we start. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4ff58e924059a244c1750050c2d3b3bf9415b68;p=varnish Clear buffers before we start. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3248 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- 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)