[4.1] 852fb46 fix printf format

Poul-Henning Kamp phk at FreeBSD.org
Fri Sep 4 15:54:54 CEST 2015


commit 852fb4624f28eccd8ff802dabc2fdcce7d2b5103
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Aug 12 13:55:47 2015 +0000

    fix printf format

diff --git a/bin/varnishd/cache/cache_panic.c b/bin/varnishd/cache/cache_panic.c
index e20f668..617b65d 100644
--- a/bin/varnishd/cache/cache_panic.c
+++ b/bin/varnishd/cache/cache_panic.c
@@ -151,7 +151,8 @@ pan_htc(struct vsb *vsb, const struct http_conn *htc)
 	    htc->rxbuf_b, htc->rxbuf_e);
 	VSB_printf(vsb, "{pipeline_b, pipeline_e} = {%p, %p},\n",
 	    htc->pipeline_b, htc->pipeline_e);
-	VSB_printf(vsb, "content_length = %jd,\n", htc->content_length);
+	VSB_printf(vsb, "content_length = %jd,\n",
+	    (intmax_t)htc->content_length);
 	VSB_printf(vsb, "body_status = %s,\n",
 	    body_status_2str(htc->body_status));
 	VSB_printf(vsb, "first_byte_timeout = %f,\n",



More information about the varnish-commit mailing list