diff options
author | ngie <ngie@FreeBSD.org> | 2015-08-06 15:30:14 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-08-06 15:30:14 +0000 |
commit | e4b151050ad79846e74a354854d0325f232cbac5 (patch) | |
tree | ea147cdce285ee5d4509ae81f2882016f863bc5d /sys/geom | |
parent | 721670f3f85c5e774935db1438938503e0da7168 (diff) | |
download | FreeBSD-src-e4b151050ad79846e74a354854d0325f232cbac5.zip FreeBSD-src-e4b151050ad79846e74a354854d0325f232cbac5.tar.gz |
Make some debug printf's into DPRINTF's to reduce noise on attach/detach
Differential Revision: https://reviews.freebsd.org/D3306
MFC after: 1 week
Reviewed by: loos
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/uzip/g_uzip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/geom/uzip/g_uzip.c b/sys/geom/uzip/g_uzip.c index 732de9d..8363d06 100644 --- a/sys/geom/uzip/g_uzip.c +++ b/sys/geom/uzip/g_uzip.c @@ -94,8 +94,8 @@ g_uzip_softc_free(struct g_uzip_softc *sc, struct g_geom *gp) { if (gp != NULL) { - printf("%s: %d requests, %d cached\n", - gp->name, sc->req_total, sc->req_cached); + DPRINTF(("%s: %d requests, %d cached\n", + gp->name, sc->req_total, sc->req_cached)); } if (sc->offsets != NULL) { free(sc->offsets, M_GEOM_UZIP); @@ -519,7 +519,7 @@ g_uzip_taste(struct g_class *mp, struct g_provider *pp, int flags) gp->name, pp2->sectorsize, (intmax_t)pp2->mediasize, pp2->stripeoffset, pp2->stripesize, pp2->flags)); - printf("%s: %u x %u blocks\n", gp->name, sc->nblocks, sc->blksz); + DPRINTF(("%s: %u x %u blocks\n", gp->name, sc->nblocks, sc->blksz)); return (gp); err: @@ -547,7 +547,7 @@ g_uzip_destroy_geom(struct gctl_req *req, struct g_class *mp, struct g_geom *gp) g_topology_assert(); if (gp->softc == NULL) { - printf("%s(%s): gp->softc == NULL\n", __func__, gp->name); + DPRINTF(("%s(%s): gp->softc == NULL\n", __func__, gp->name)); return (ENXIO); } |