]> err.no Git - varnish/commitdiff
Merge r3401:
authortfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 28 Jan 2009 12:18:10 +0000 (12:18 +0000)
committertfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 28 Jan 2009 12:18:10 +0000 (12:18 +0000)
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

index 6cde5d434092bd3a9c11f40722035ed4551c31fd..3a33b25e4cc68b3a6ea3a62b827219fab95f111b 100644 (file)
@@ -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;
 }