[master] e9f1b8c Make a workspace debugging output more usable

Poul-Henning Kamp phk at FreeBSD.org
Tue Aug 30 11:42:11 CEST 2016


commit e9f1b8ce82e0f575dd069aa73dd8287c33d01cdf
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 36989fc..57f334f 100644
--- a/bin/varnishd/cache/cache_ws.c
+++ b/bin/varnishd/cache/cache_ws.c
@@ -244,7 +244,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