Commit 63d19da4 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Improve panic message in case #2592 happens again

parent fee476ac
......@@ -818,6 +818,6 @@ Tlen(const txt t)
do { \
if ((ptr)->magic != (exp)) \
VSB_printf((vsb), \
"MAGIC 0x%08x (Should:%s/0x%08x)\n", \
(ptr)->magic, #exp, exp); \
"MAGIC at %p is 0x%08x (Should be: %s/0x%08x)\n", \
ptr, (ptr)->magic, #exp, exp); \
} while(0)
......@@ -118,7 +118,7 @@ sess_close_2str(enum sess_close sc, int want_desc)
/*--------------------------------------------------------------------*/
#define N_ALREADY 64
#define N_ALREADY 256
static const void *already_list[N_ALREADY];
static int already_idx;
......
......@@ -48,6 +48,7 @@ h2_sess_panic(struct vsb *vsb, const struct sess *sp)
VSB_printf(vsb, "streams {\n");
VSB_indent(vsb, 2);
VTAILQ_FOREACH(r2, &h2->streams, list) {
PAN_CheckMagic(vsb, r2, H2_REQ_MAGIC);
VSB_printf(vsb, "0x%08x", r2->stream);
switch (r2->state) {
#define H2_STREAM(U,sd,d) case H2_S_##U: VSB_printf(vsb, " %-6s", sd); break;
......
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