]> err.no Git - varnish/commitdiff
Make malloc print max storage size
authortfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 18 Nov 2008 13:29:34 +0000 (13:29 +0000)
committertfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 18 Nov 2008 13:29:34 +0000 (13:29 +0000)
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

index c82b42d13325753bf0c807fd01992d4433cf3e3e..c987942ff4dd5a1ec710aa91e61ae47cdb271197 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;
 }