[master] ede0ff5 Gross hack, but could be handy another time.

Poul-Henning Kamp phk at FreeBSD.org
Thu May 14 22:43:48 CEST 2015


commit ede0ff58327553d470fc5f2ce891c8a72e9f4d42
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu May 14 20:42:48 2015 +0000

    Gross hack, but could be handy another time.

diff --git a/bin/varnishd/cache/cache_deliver_proc.c b/bin/varnishd/cache/cache_deliver_proc.c
index 9006af8..4fd666b 100644
--- a/bin/varnishd/cache/cache_deliver_proc.c
+++ b/bin/varnishd/cache/cache_deliver_proc.c
@@ -63,6 +63,16 @@ VDP_push(struct req *req, vdp_bytes *func, void *priv, int bottom)
 	CHECK_OBJ_NOTNULL(req, REQ_MAGIC);
 	AN(func);
 
+#if 0
+	// Gross hack for debugging
+	struct vsb *vsb;
+	vsb = VSB_new_auto();
+	AN(vsb);
+	Symbol_Lookup(vsb, func);
+	AZ(VSB_finish(vsb));
+	VSLb(req->vsl, SLT_Debug, "VDP %s %p %d", VSB_data(vsb), priv, bottom);
+	VSB_delete(vsb);
+#endif
 	vdp = WS_Alloc(req->ws, sizeof *vdp);
 	AN(vdp);
 	INIT_OBJ(vdp, VDP_ENTRY_MAGIC);



More information about the varnish-commit mailing list