]> err.no Git - varnish/commitdiff
Make sure we have predictable column numbers by printing '-' if it
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 20 Aug 2006 07:26:52 +0000 (07:26 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 20 Aug 2006 07:26:52 +0000 (07:26 +0000)
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

index d0b3d53679caf9054d1d4aa5d90f95685ada74af..10395da92de0164e46bd3e305b5b4413d037f536 100644 (file)
@@ -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: