r238 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Jun 26 18:31:32 CEST 2006


Author: phk
Date: 2006-06-26 18:31:32 +0200 (Mon, 26 Jun 2006)
New Revision: 238

Modified:
   trunk/varnish-cache/bin/varnishd/cache_vcl.c
Log:
Dump numeric handling also, until we figure out trouble.


Modified: trunk/varnish-cache/bin/varnishd/cache_vcl.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_vcl.c	2006-06-26 16:30:56 UTC (rev 237)
+++ trunk/varnish-cache/bin/varnishd/cache_vcl.c	2006-06-26 16:31:32 UTC (rev 238)
@@ -208,10 +208,8 @@
 CheckHandling(struct sess *sp, const char *func, unsigned bitmap)
 {
 	unsigned u;
-	const char *n;
 
 	u = sp->handling;
-	n = HandlingName(u);
 	if (u & (u - 1))
 		VSL(SLT_Error, sp->fd,
 		    "Illegal handling after %s function: 0x%x", func, u);
@@ -231,7 +229,7 @@
 	sp->handling = 0;			\
 	sp->vcl->func##_func(sp);		\
 	CheckHandling(sp, #func, (bitmap));	\
-	VSL(SLT_vcl_##func, sp->fd, "%s", HandlingName(sp->handling)); \
+	VSL(SLT_vcl_##func, sp->fd, "0x%x %s", sp->handling, HandlingName(sp->handling)); \
 }
 
 #define VCL_RET_MAC(l,u,b)




More information about the varnish-commit mailing list