]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: connection: report the mux names in "haproxy -vv"
authorWilly Tarreau <w@1wt.eu>
Wed, 22 May 2019 09:44:03 +0000 (11:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 May 2019 09:50:48 +0000 (11:50 +0200)
Since the mux names appear at a few places (dumps etc), let's list
them in front of supported mux protocols in "haproxy -vv".

include/proto/connection.h

index 8a2884e2dd71581d072fd21ce9c25e7b8af9f26b..ede372638351e0f1db04aa9315882ff5d8335ee6 100644 (file)
@@ -1002,8 +1002,8 @@ static inline void list_mux_proto(FILE *out)
                else
                        side = "NONE";
 
-               fprintf(out, " %15s : mode=%-10s side=%s\n",
-                       (proto.len ? proto.ptr : "<default>"), mode, side);
+               fprintf(out, " %15s : mode=%-10s side=%-8s  mux=%s\n",
+                       (proto.len ? proto.ptr : "<default>"), mode, side, item->mux->name);
        }
 }