[experimental-ims] 71b981f Use %ju for uintmax_t printf

Geoff Simmons geoff at varnish-cache.org
Fri Feb 17 13:58:53 CET 2012


commit 71b981f38663443db9b162caf2b13c2a367c2fd8
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date:   Wed Feb 15 08:37:10 2012 +0100

    Use %ju for uintmax_t printf

diff --git a/bin/varnishd/mgt/mgt_param.c b/bin/varnishd/mgt/mgt_param.c
index 475806d..a5cde62 100644
--- a/bin/varnishd/mgt/mgt_param.c
+++ b/bin/varnishd/mgt/mgt_param.c
@@ -288,7 +288,7 @@ fmt_bytes(struct cli *cli, uintmax_t t)
 	const char *p;
 
 	if (t & 0xff) {
-		VCLI_Out(cli, "%zub", t);
+		VCLI_Out(cli, "%jub", t);
 		return;
 	}
 	for (p = "kMGTPEZY"; *p; p++) {



More information about the varnish-commit mailing list