[master] e386255 Fix printf format for 32 bit archs

Poul-Henning Kamp phk at FreeBSD.org
Wed Sep 24 14:36:04 CEST 2014


commit e3862554a6662d6ccb09877dc2d2f16444109e5e
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Sep 24 12:35:50 2014 +0000

    Fix printf format for 32 bit archs

diff --git a/bin/varnishd/cache/cache_panic.c b/bin/varnishd/cache/cache_panic.c
index 625f314..ca169d9 100644
--- a/bin/varnishd/cache/cache_panic.c
+++ b/bin/varnishd/cache/cache_panic.c
@@ -278,7 +278,7 @@ pan_wrk(const struct worker *wrk)
 
 	VSB_printf(pan_vsp, "  worker = %p {\n", wrk);
 	VSB_printf(pan_vsp, "    stack = {0x%jx -> 0x%jx}\n",
-	    wrk->stack_start, wrk->stack_end);
+	    (uintmax_t)wrk->stack_start, (uintmax_t)wrk->stack_end);
 	pan_ws(wrk->aws, 4);
 
 	m = wrk->cur_method;



More information about the varnish-commit mailing list