Commit 46cf805b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make sure we have predictable column numbers by printing '-' if it

is neither classified as client or backend.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@840 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 3f80e9bb
......@@ -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:
......
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