Commit 9187d074 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Try fixing #95 again. The trick is that if we get a new SLT_VCL_call

while the F_INVCL flag is set, we need to insert a newline before the
entry for the new VCL_call.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1374 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 089b1aa2
......@@ -113,8 +113,11 @@ h_order(void *priv, enum shmlogtag tag, unsigned fd, unsigned len, unsigned spec
flg[fd] |= F_MATCH;
switch (tag) {
case SLT_VCL_call:
flg[fd] |= F_INVCL;
vsb_printf(ob[fd], "%5d %-12s %c %.*s\n",
if (flg[fd] & F_INVCL)
vsb_cat(ob[fd], "\n");
else
flg[fd] |= F_INVCL;
vsb_printf(ob[fd], "%5d %-12s %c %.*s",
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