[master] ca6934f Also print out the text description of the gunzip error.

Poul-Henning Kamp phk at varnish-cache.org
Wed Feb 16 07:28:00 CET 2011


commit ca6934fda07845ac02d649d6f809473b86cb21e9
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Feb 15 21:24:52 2011 +0000

    Also print out the text description of the gunzip error.

diff --git a/bin/varnishd/cache_gzip.c b/bin/varnishd/cache_gzip.c
index 655398a..7af71c8 100644
--- a/bin/varnishd/cache_gzip.c
+++ b/bin/varnishd/cache_gzip.c
@@ -302,7 +302,7 @@ VGZ_Gunzip(struct vgz *vg, const void **pptr, size_t *plen)
 		return (1);
 	if (i == Z_BUF_ERROR)
 		return (2);
-printf("INFLATE=%d\n", i);
+printf("INFLATE=%d (%s)\n", i, vg->vz.msg);
 	return (-1);
 }
 



More information about the varnish-commit mailing list