From: tfheen Date: Tue, 18 Nov 2008 13:29:34 +0000 (+0000) Subject: Make malloc print max storage size X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9274dc4518498bb5ae642d339046658509d4ebc;p=varnish Make malloc print max storage size storage_file prints the maximum storage size, make malloc do the same, for consistency. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3401 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/storage_malloc.c b/varnish-cache/bin/varnishd/storage_malloc.c index c82b42d1..c987942f 100644 --- a/varnish-cache/bin/varnishd/storage_malloc.c +++ b/varnish-cache/bin/varnishd/storage_malloc.c @@ -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; }