From 6376b7c919adb5ae69086f8f8ade3f1abf05cae2 Mon Sep 17 00:00:00 2001 From: tfheen Date: Wed, 28 Jan 2009 12:18:10 +0000 Subject: [PATCH] Merge r3401: 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/branches/2.0@3553 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 6cde5d43..3a33b25e 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