Mailing List Archive

r3401 - trunk/varnish-cache/bin/varnishd
Author: tfheen
Date: 2008-11-18 14:29:34 +0100 (Tue, 18 Nov 2008)
New Revision: 3401

Modified:
trunk/varnish-cache/bin/varnishd/storage_malloc.c
Log:
Make malloc print max storage size

storage_file prints the maximum storage size, make malloc do the same,
for consistency.


Modified: trunk/varnish-cache/bin/varnishd/storage_malloc.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/storage_malloc.c 2008-11-17 18:02:09 UTC (rev 3400)
+++ trunk/varnish-cache/bin/varnishd/storage_malloc.c 2008-11-18 13:29:34 UTC (rev 3401)
@@ -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;
}