[master] 53a5e2561 Fix for 32 bit archs

Poul-Henning Kamp phk at FreeBSD.org
Thu Nov 1 16:03:09 UTC 2018


commit 53a5e2561e750e393d3423d08f6aaf571b90e4b9
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Nov 1 16:02:30 2018 +0000

    Fix for 32 bit archs

diff --git a/lib/libvmod_debug/vmod_debug.c b/lib/libvmod_debug/vmod_debug.c
index 3a76f6c7e..c04c926d2 100644
--- a/lib/libvmod_debug/vmod_debug.c
+++ b/lib/libvmod_debug/vmod_debug.c
@@ -586,8 +586,8 @@ xyzzy_priv_perf(VRT_CTX, VCL_INT size, VCL_INT rounds)
 	d = (t1 - t0) * 1e9 / size / rounds;
 
 	VSLb(ctx->vsl, SLT_Debug,
-	     "perf size %ld rounds %ld time %.9fns check %ld",
-	     size, rounds, d, check);
+	     "perf size %jd rounds %jd time %.9fns check %jd",
+	     (intmax_t)size, (intmax_t)rounds, d, (uintmax_t)check);
 
 	return (d);
 }


More information about the varnish-commit mailing list