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, ...) ...@@ -80,6 +80,7 @@ vtc_log(struct vtclog *vl, unsigned lvl, const char *fmt, ...)
assert(lvl < NLEAD); assert(lvl < NLEAD);
if (lvl > vtc_verbosity) if (lvl > vtc_verbosity)
return; return;
vsb_clear(vl->vsb);
vsb_printf(vl->vsb, "%s %-4s ", lead[lvl], vl->id); vsb_printf(vl->vsb, "%s %-4s ", lead[lvl], vl->id);
va_list ap; va_list ap;
va_start(ap, fmt); va_start(ap, fmt);
...@@ -107,6 +108,7 @@ vtc_dump(struct vtclog *vl, unsigned lvl, const char *pfx, const char *str) ...@@ -107,6 +108,7 @@ vtc_dump(struct vtclog *vl, unsigned lvl, const char *pfx, const char *str)
assert(lvl < NLEAD); assert(lvl < NLEAD);
if (lvl > vtc_verbosity) if (lvl > vtc_verbosity)
return; return;
vsb_clear(vl->vsb);
if (pfx == NULL) if (pfx == NULL)
pfx = ""; pfx = "";
if (str == NULL) 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