r840 - trunk/varnish-cache/bin/varnishlog

phk at projects.linpro.no phk at projects.linpro.no
Sun Aug 20 09:26:52 CEST 2006


Author: phk
Date: 2006-08-20 09:26:52 +0200 (Sun, 20 Aug 2006)
New Revision: 840

Modified:
   trunk/varnish-cache/bin/varnishlog/varnishlog.c
Log:
Make sure we have predictable column numbers by printing '-' if it
is neither classified as client or backend.


Modified: trunk/varnish-cache/bin/varnishlog/varnishlog.c
===================================================================
--- trunk/varnish-cache/bin/varnishlog/varnishlog.c	2006-08-19 21:48:30 UTC (rev 839)
+++ trunk/varnish-cache/bin/varnishlog/varnishlog.c	2006-08-20 07:26:52 UTC (rev 840)
@@ -89,7 +89,7 @@
 		vsb_printf(ob[fd], "%5d %-12s %c %.*s",
 		    fd, VSL_tags[tag],
 		    ((spec & VSL_S_CLIENT) ? 'c' : \
-		    (spec & VSL_S_BACKEND) ? 'b' : ' '),
+		    (spec & VSL_S_BACKEND) ? 'b' : '-'),
 		    len, ptr);
 		return (0);
 	case SLT_VCL_trace:
@@ -109,7 +109,7 @@
 	}
 	vsb_printf(ob[fd], "%5d %-12s %c %.*s\n",
 	    fd, VSL_tags[tag],
-	    ((spec & VSL_S_CLIENT) ? 'c' : (spec & VSL_S_BACKEND) ? 'b' : ' '),
+	    ((spec & VSL_S_CLIENT) ? 'c' : (spec & VSL_S_BACKEND) ? 'b' : '-'),
 	    len, ptr);
 	switch (tag) {
 	case SLT_ReqEnd:




More information about the varnish-commit mailing list