From: Willy Tarreau Date: Fri, 23 Nov 2012 10:19:33 +0000 (+0100) Subject: MINOR: cli: report the msg state in full text in "show sess $PTR" X-Git-Tag: v1.5-dev14~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6d9702e7e4fda7de6c14c3b5862471924d34793;p=thirdparty%2Fhaproxy.git MINOR: cli: report the msg state in full text in "show sess $PTR" It's more convenient to debug with real state names. --- 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,