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

fix formatting glitches in -o mode


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@821 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 92267dc0
......@@ -58,7 +58,7 @@ h_order(void *priv, unsigned tag, unsigned fd, unsigned len, unsigned spec, cons
switch (tag) {
case SLT_VCL_call:
invcl[fd] = 1;
vsb_printf(ob[fd], "%5d %-12s %c <%.*s",
vsb_printf(ob[fd], "%5d %-12s %c %.*s",
fd, VSL_tags[tag],
((spec & VSL_S_CLIENT) ? 'c' : \
(spec & VSL_S_BACKEND) ? 'b' : ' '),
......@@ -78,8 +78,10 @@ h_order(void *priv, unsigned tag, unsigned fd, unsigned len, unsigned spec, cons
invcl[fd] = 0;
break;
}
if (invcl[fd])
if (invcl[fd]) {
vsb_cat(ob[fd], "\n");
invcl[fd] = 0;
}
vsb_printf(ob[fd], "%5d %-12s %c %.*s\n",
fd, VSL_tags[tag],
((spec & VSL_S_CLIENT) ? 'c' : (spec & VSL_S_BACKEND) ? 'b' : ' '),
......
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