Commit e914ea81 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Clear buffers before we start.



git-svn-id: http://www.varnish-cache.org/svn/trunk@3248 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 52dd5d86
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment