[master] 6313596 Use correct printf spec for ssize_t

Poul-Henning Kamp phk at FreeBSD.org
Wed Apr 6 00:14:04 CEST 2016


commit 6313596ada4909b0202d264f5a07b92343a869c5
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Apr 5 22:13:00 2016 +0000

    Use correct printf spec for ssize_t

diff --git a/lib/libvmod_debug/vmod_debug.c b/lib/libvmod_debug/vmod_debug.c
index e00332b..9928991 100644
--- a/lib/libvmod_debug/vmod_debug.c
+++ b/lib/libvmod_debug/vmod_debug.c
@@ -509,6 +509,6 @@ vmod_barrier_sync(VRT_CTX, VCL_STRING addr)
 		VSLb(ctx->vsl, SLT_Error,
 		    "Barrier read failed: %s (errno=%d)", strerror(i), i);
 	if (sz > 0)
-		VSLb(ctx->vsl, SLT_Error, "Barrier unexpected data (%ldB)", sz);
+		VSLb(ctx->vsl, SLT_Error, "Barrier unexpected data (%zdB)", sz);
 	return (0);
 }



More information about the varnish-commit mailing list