[experimental-ims] 3302916 Quench a pointless debug printf
Geoff Simmons
geoff at varnish-cache.org
Mon Jan 9 21:51:46 CET 2012
commit 3302916f320dd64ad5a866b03687306ceb441936
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Wed Sep 7 20:13:07 2011 +0000
Quench a pointless debug printf
diff --git a/bin/varnishd/storage_file.c b/bin/varnishd/storage_file.c
index 7687179..45dfac4 100644
--- a/bin/varnishd/storage_file.c
+++ b/bin/varnishd/storage_file.c
@@ -104,13 +104,10 @@ struct smf_sc {
/*--------------------------------------------------------------------*/
static void
-smf_initfile(struct stevedore *st, struct smf_sc *sc, const char *size)
+smf_initfile(struct smf_sc *sc, const char *size)
{
sc->filesize = STV_FileSize(sc->fd, size, &sc->pagesize, "-sfile");
- printf("SMF.%s: filename: %s size %ju MB.\n",
- st->ident, sc->filename, sc->filesize / (1024 * 1024));
-
AZ(ftruncate(sc->fd, (off_t)sc->filesize));
/* XXX: force block allocation here or in open ? */
@@ -162,7 +159,7 @@ smf_init(struct stevedore *parent, int ac, char * const *av)
(void)STV_GetFile(fn, &sc->fd, &sc->filename, "-sfile");
mgt_child_inherit(sc->fd, "storage_file");
- smf_initfile(parent, sc, size);
+ smf_initfile(sc, size);
}
/*--------------------------------------------------------------------
More information about the varnish-commit
mailing list