[master] f106ed834 add the vmod pointer to the panic output
Nils Goroll
nils.goroll at uplex.de
Sat Apr 6 11:16:06 UTC 2019
commit f106ed834f31f2ab5c798c56a6ca48225615dc45
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Sat Apr 6 12:51:17 2019 +0200
add the vmod pointer to the panic output
to identify the vmod by its address in other places like vcc-assigned
VRT_priv_* ids
diff --git a/bin/varnishd/cache/cache_vrt_vmod.c b/bin/varnishd/cache/cache_vrt_vmod.c
index af49ef40b..fd8031149 100644
--- a/bin/varnishd/cache/cache_vrt_vmod.c
+++ b/bin/varnishd/cache/cache_vrt_vmod.c
@@ -199,8 +199,8 @@ VMOD_Panic(struct vsb *vsb)
VSB_printf(vsb, "vmods = {\n");
VSB_indent(vsb, 2);
VTAILQ_FOREACH(v, &vmods, list)
- VSB_printf(vsb, "%s = {%s, %u.%u},\n",
- v->nm, v->abi, v->vrt_major, v->vrt_minor);
+ VSB_printf(vsb, "%s = {%p, %s, %u.%u},\n",
+ v->nm, v, v->abi, v->vrt_major, v->vrt_minor);
VSB_indent(vsb, -2);
VSB_printf(vsb, "},\n");
}
More information about the varnish-commit
mailing list