[master] 1d68de5 Be agnostic about size of VCL_INT and VCL_BYTES
Poul-Henning Kamp
phk at FreeBSD.org
Tue Mar 6 10:12:06 UTC 2018
commit 1d68de5737bae85e0f2c71ef949653752fb13bc5
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Mar 6 10:10:22 2018 +0000
Be agnostic about size of VCL_INT and VCL_BYTES
diff --git a/lib/libvmod_debug/vmod_debug.c b/lib/libvmod_debug/vmod_debug.c
index d833fb2..0534611 100644
--- a/lib/libvmod_debug/vmod_debug.c
+++ b/lib/libvmod_debug/vmod_debug.c
@@ -156,8 +156,8 @@ xyzzy_argtest(VRT_CTX, struct xyzzy_argtest_arg *arg)
char buf[100];
AN(arg);
- bprintf(buf, "%s %g %s %s %ld %d %s",
- arg->one, arg->two, arg->three, arg->comma, arg->four,
+ bprintf(buf, "%s %g %s %s %jd %d %s",
+ arg->one, arg->two, arg->three, arg->comma, (intmax_t)arg->four,
arg->valid_opt, arg->valid_opt ? arg->opt : "<undef>");
return (WS_Copy(ctx->ws, buf, -1));
}
More information about the varnish-commit
mailing list