svn commit: r289952 - stable/10/sys/geom/uzip
Garrett Cooper
ngie at FreeBSD.org
Sun Oct 25 22:21:20 UTC 2015
Author: ngie
Date: Sun Oct 25 22:21:19 2015
New Revision: 289952
URL: https://svnweb.freebsd.org/changeset/base/289952
Log:
MFC r286367:
Make some debug printf's into DPRINTF's to reduce noise on attach/detach
Differential Revision: https://reviews.freebsd.org/D3306
Reviewed by: loos
Sponsored by: EMC / Isilon Storage Division
Modified:
stable/10/sys/geom/uzip/g_uzip.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/geom/uzip/g_uzip.c
==============================================================================
--- stable/10/sys/geom/uzip/g_uzip.c Sun Oct 25 22:20:13 2015 (r289951)
+++ stable/10/sys/geom/uzip/g_uzip.c Sun Oct 25 22:21:19 2015 (r289952)
@@ -94,8 +94,8 @@ g_uzip_softc_free(struct g_uzip_softc *s
{
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
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
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);
}
More information about the svn-src-stable-10
mailing list