]> err.no Git - varnish/commitdiff
Clear buffers before we start.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 5 Oct 2008 10:40:46 +0000 (10:40 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 5 Oct 2008 10:40:46 +0000 (10:40 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3248 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishtest/vtc_log.c

index 50715054535d3bf33a2fc3586363dd0fbb306eb3..1401aacf9047d496f7e8b7907fd5d2366ab14f7e 100644 (file)
@@ -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)