[master] a3a5d2f62 Cast %ju argument to uintmax_t
Poul-Henning Kamp
phk at FreeBSD.org
Sun Apr 11 10:16:05 UTC 2021
commit a3a5d2f62d08dad4e56497e40c2d7c9fbe087e07
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Sun Apr 11 10:11:44 2021 +0000
Cast %ju argument to uintmax_t
Closes: #3570
diff --git a/vmod/vmod_debug_acl.c b/vmod/vmod_debug_acl.c
index bff2a0ce2..7de562743 100644
--- a/vmod/vmod_debug_acl.c
+++ b/vmod/vmod_debug_acl.c
@@ -245,7 +245,8 @@ xyzzy_time_acl(VRT_CTX, VCL_ACL acl, VCL_IP ip0, VCL_IP ip1,
}
t1 = VTIM_mono();
VSLb(ctx->vsl, SLT_Debug,
- "Timed ACL: %.9f -> %.9f = %.9f %.9f/round, %.9f/IP %jd IPs",
- t0, t1, t1 - t0, (t1-t0) / turnus, (t1-t0) / asw->count, asw->count);
+ "Timed ACL: %.9f -> %.9f = %.9f %.9f/round, %.9f/IP %ju IPs",
+ t0, t1, t1 - t0, (t1-t0) / turnus, (t1-t0) / asw->count,
+ (uintmax_t)asw->count);
return ((t1 - t0) / asw->count);
}
More information about the varnish-commit
mailing list