[4.1] a4b4903 Make a workspace debugging output more usable
PÃ¥l Hermunn Johansen
hermunn at varnish-software.com
Mon Sep 12 15:48:17 CEST 2016
commit a4b490312f96c2d0e136b7693c40440cbf55fb17
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Aug 30 09:01:16 2016 +0000
Make a workspace debugging output more usable
diff --git a/bin/varnishd/cache/cache_ws.c b/bin/varnishd/cache/cache_ws.c
index e4a0b0c..f9402d3 100644
--- a/bin/varnishd/cache/cache_ws.c
+++ b/bin/varnishd/cache/cache_ws.c
@@ -241,7 +241,7 @@ void
WS_ReleaseP(struct ws *ws, char *ptr)
{
WS_Assert(ws);
- DSL(DBG_WORKSPACE, 0, "WS_ReleaseP(%p, %p)", ws, ptr);
+ DSL(DBG_WORKSPACE, 0, "WS_ReleaseP(%p, %p (%zd))", ws, ptr, ptr - ws->f);
assert(ws->r != NULL);
assert(ptr >= ws->f);
assert(ptr <= ws->r);
More information about the varnish-commit
mailing list