r3248 - trunk/varnish-cache/bin/varnishtest

phk at projects.linpro.no phk at projects.linpro.no
Sun Oct 5 12:40:47 CEST 2008


Author: phk
Date: 2008-10-05 12:40:46 +0200 (Sun, 05 Oct 2008)
New Revision: 3248

Modified:
   trunk/varnish-cache/bin/varnishtest/vtc_log.c
Log:
Clear buffers before we start.



Modified: trunk/varnish-cache/bin/varnishtest/vtc_log.c
===================================================================
--- trunk/varnish-cache/bin/varnishtest/vtc_log.c	2008-10-05 10:31:50 UTC (rev 3247)
+++ trunk/varnish-cache/bin/varnishtest/vtc_log.c	2008-10-05 10:40:46 UTC (rev 3248)
@@ -80,6 +80,7 @@
 	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 @@
 	assert(lvl < NLEAD);
 	if (lvl > vtc_verbosity)
 		return;
+	vsb_clear(vl->vsb);
 	if (pfx == NULL)
 		pfx = "";
 	if (str == NULL) 




More information about the varnish-commit mailing list