r3553 - branches/2.0/varnish-cache/bin/varnishd
tfheen at projects.linpro.no
tfheen at projects.linpro.no
Wed Jan 28 13:18:11 CET 2009
Author: tfheen
Date: 2009-01-28 13:18:10 +0100 (Wed, 28 Jan 2009)
New Revision: 3553
Modified:
branches/2.0/varnish-cache/bin/varnishd/storage_malloc.c
Log:
Merge r3401:
Make malloc print max storage size
storage_file prints the maximum storage size, make malloc do the same,
for consistency.
Modified: branches/2.0/varnish-cache/bin/varnishd/storage_malloc.c
===================================================================
--- branches/2.0/varnish-cache/bin/varnishd/storage_malloc.c 2009-01-28 12:13:05 UTC (rev 3552)
+++ branches/2.0/varnish-cache/bin/varnishd/storage_malloc.c 2009-01-28 12:18:10 UTC (rev 3553)
@@ -143,6 +143,9 @@
ARGV_ERR("(-smalloc) size \"%s\": %s\n", av[0], e);
if ((u != (uintmax_t)(size_t)u))
ARGV_ERR("(-smalloc) size \"%s\": too big\n", av[0]);
+
+ printf("storage_malloc: max size %ju MB.\n",
+ u / (1024 * 1024));
sma_max = u;
}
More information about the varnish-commit
mailing list