Commit 702b9f26 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Make malloc print max storage size

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


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3401 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent b7ae8111
......@@ -143,6 +143,9 @@ sma_init(struct stevedore *parent, int ac, char * const *av)
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment