[master] 09ed403 ESI parsing debug code for VEP_MATCHBUF state
Nils Goroll
nils.goroll at uplex.de
Wed Dec 14 15:32:04 CET 2016
commit 09ed4039af46a93bc3c7abde369bc6260287a543
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Wed Dec 14 15:18:59 2016 +0100
ESI parsing debug code for VEP_MATCHBUF state
ESI Debugging code is disabled unless the Debug macro at the top of the file is changed.
diff --git a/bin/varnishd/cache/cache_esi_parse.c b/bin/varnishd/cache/cache_esi_parse.c
index d2b2306..45d5f48 100644
--- a/bin/varnishd/cache/cache_esi_parse.c
+++ b/bin/varnishd/cache/cache_esi_parse.c
@@ -932,6 +932,13 @@ VEP_Parse(struct vep_state *vep, const char *p, size_t l)
memcpy(vep->tag + vep->tag_i, p, i);
vm = vep_match(vep, vep->tag,
vep->tag + vep->tag_i + i);
+ Debug("MB (%.*s) tag_i %d i %d = vm %p match %s\n",
+ vep->tag_i + i, vep->tag,
+ vep->tag_i,
+ i,
+ vm,
+ vm ? vm->match : "(nil)");
+
if (vm == NULL) {
vep->tag_i += i;
p += i;
More information about the varnish-commit
mailing list