[master] 9c47426 Cast bit numbers before printf.
Poul-Henning Kamp
phk at varnish-cache.org
Tue Mar 15 09:27:17 CET 2011
commit 9c474268879b411e0a9da1ee72b109fef0900163
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Mar 15 08:27:05 2011 +0000
Cast bit numbers before printf.
diff --git a/bin/varnishtest/vtc_http.c b/bin/varnishtest/vtc_http.c
index 5f8cd1b..7d0dba2 100644
--- a/bin/varnishtest/vtc_http.c
+++ b/bin/varnishtest/vtc_http.c
@@ -561,11 +561,14 @@ cmd_http_gunzip_body(CMD_ARGS)
vtc_dump(hp->vl, 4, "body", hp->body, hp->bodyl);
bprintf(hp->bodylen, "%u", hp->bodyl);
vtc_log(hp->vl, 4, "startbit = %ju %ju/%ju",
- vz.start_bit, vz.start_bit >> 3, vz.start_bit & 7);
+ (uintmax_t)vz.start_bit,
+ (uintmax_t)vz.start_bit >> 3, (uintmax_t)vz.start_bit & 7);
vtc_log(hp->vl, 4, "lastbit = %ju %ju/%ju",
- vz.last_bit, vz.last_bit >> 3, vz.last_bit & 7);
+ (uintmax_t)vz.last_bit,
+ (uintmax_t)vz.last_bit >> 3, (uintmax_t)vz.last_bit & 7);
vtc_log(hp->vl, 4, "stopbit = %ju %ju/%ju",
- vz.stop_bit, vz.stop_bit >> 3, vz.stop_bit & 7);
+ (uintmax_t)vz.stop_bit,
+ (uintmax_t)vz.stop_bit >> 3, (uintmax_t)vz.stop_bit & 7);
if (i != Z_STREAM_END)
vtc_log(hp->vl, 0, "Gunzip error = %d (%s) in:%jd out:%jd",
i, vz.msg, (intmax_t)vz.total_in, (intmax_t)vz.total_out);
More information about the varnish-commit
mailing list