From e6d9702e7e4fda7de6c14c3b5862471924d34793 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 23 Nov 2012 11:19:33 +0100 Subject: [PATCH] MINOR: cli: report the msg state in full text in "show sess $PTR" It's more convenient to debug with real state names. --- src/dumpstats.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dumpstats.c b/src/dumpstats.c index a9ecdb3c81..17bf973c62 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -49,6 +49,7 @@ #include #include #include +#include #include #include #include @@ -3599,9 +3600,9 @@ static int stats_dump_full_sess_to_buffer(struct stream_interface *si) sess->si[1].conn->t.sock.fd >= 0 ? fdtab[sess->si[1].conn->t.sock.fd].spec_e : 0); chunk_appendf(&trash, - " txn=%p (flags=0x%x meth=%d status=%d req.st=%d rsp.st=%d)\n", + " txn=%p (flags=0x%x meth=%d status=%d req.st=%s rsp.st=%s)\n", &sess->txn, sess->txn.flags, sess->txn.meth, sess->txn.status, - sess->txn.req.msg_state, sess->txn.rsp.msg_state); + http_msg_state_str(sess->txn.req.msg_state), http_msg_state_str(sess->txn.rsp.msg_state)); chunk_appendf(&trash, -- 2.47.3