[master] 2e8ff87 Print out the right number in our diagnostics
Poul-Henning Kamp
phk at varnish-cache.org
Mon Feb 13 11:24:41 CET 2012
commit 2e8ff8776a536a302047881438f4aaca487fd51f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Feb 13 10:24:29 2012 +0000
Print out the right number in our diagnostics
diff --git a/bin/varnishd/mgt/mgt_param.c b/bin/varnishd/mgt/mgt_param.c
index 6c24e91..1abb273 100644
--- a/bin/varnishd/mgt/mgt_param.c
+++ b/bin/varnishd/mgt/mgt_param.c
@@ -323,7 +323,7 @@ tweak_generic_bytes(struct cli *cli, volatile ssize_t *dest, const char *arg,
return;
}
if ((uintmax_t)((ssize_t)r) != r) {
- fmt_bytes(cli, (uintmax_t)max);
+ fmt_bytes(cli, r);
VCLI_Out(cli, " is too large for this architecture.\n");
VCLI_SetResult(cli, CLIS_PARAM);
return;
More information about the varnish-commit
mailing list