From d9274dc4518498bb5ae642d339046658509d4ebc Mon Sep 17 00:00:00 2001 From: tfheen Date: Tue, 18 Nov 2008 13:29:34 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/storage_malloc.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5