Commit 12095cf8 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Tollef Fog Heen

Quench a pointless debug printf

parent 1914ab23
...@@ -104,13 +104,10 @@ struct smf_sc { ...@@ -104,13 +104,10 @@ struct smf_sc {
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
static void 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"); 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)); AZ(ftruncate(sc->fd, (off_t)sc->filesize));
/* XXX: force block allocation here or in open ? */ /* XXX: force block allocation here or in open ? */
...@@ -162,7 +159,7 @@ smf_init(struct stevedore *parent, int ac, char * const *av) ...@@ -162,7 +159,7 @@ smf_init(struct stevedore *parent, int ac, char * const *av)
(void)STV_GetFile(fn, &sc->fd, &sc->filename, "-sfile"); (void)STV_GetFile(fn, &sc->fd, &sc->filename, "-sfile");
mgt_child_inherit(sc->fd, "storage_file"); mgt_child_inherit(sc->fd, "storage_file");
smf_initfile(parent, sc, size); smf_initfile(sc, size);
} }
/*-------------------------------------------------------------------- /*--------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment