r821 - trunk/varnish-cache/bin/varnishlog

phk at projects.linpro.no phk at projects.linpro.no
Fri Aug 11 22:46:08 CEST 2006


Author: phk
Date: 2006-08-11 22:46:08 +0200 (Fri, 11 Aug 2006)
New Revision: 821

Modified:
   trunk/varnish-cache/bin/varnishlog/varnishlog.c
Log:
fix formatting glitches in -o mode


Modified: trunk/varnish-cache/bin/varnishlog/varnishlog.c
===================================================================
--- trunk/varnish-cache/bin/varnishlog/varnishlog.c	2006-08-11 20:43:45 UTC (rev 820)
+++ trunk/varnish-cache/bin/varnishlog/varnishlog.c	2006-08-11 20:46:08 UTC (rev 821)
@@ -58,7 +58,7 @@
 	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 @@
 		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' : ' '),




More information about the varnish-commit mailing list