From 2542d1a9408550e3e96c8c1ebbf218640d2f5389 Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 20 Aug 2006 07:26:52 +0000 Subject: [PATCH] Make sure we have predictable column numbers by printing '-' if it is neither classified as client or backend. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@840 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishlog/varnishlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/varnish-cache/bin/varnishlog/varnishlog.c b/varnish-cache/bin/varnishlog/varnishlog.c index d0b3d536..10395da9 100644 --- a/varnish-cache/bin/varnishlog/varnishlog.c +++ b/varnish-cache/bin/varnishlog/varnishlog.c @@ -89,7 +89,7 @@ h_order(void *priv, unsigned tag, unsigned fd, unsigned len, unsigned spec, cons 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 @@ h_order(void *priv, unsigned tag, unsigned fd, unsigned len, unsigned spec, cons } 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: -- 2.39.5