Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Aug 2015 06:58:07 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r286512 - head/sys/geom/uncompress
Message-ID:  <201508090658.t796w7f0010546@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Sun Aug  9 06:58:06 2015
New Revision: 286512
URL: https://svnweb.freebsd.org/changeset/base/286512

Log:
  Make some debug printf's into DPRINTF's to reduce noise on attach/detahh
  
  Similar reasoning to what was done in r286367 with geom_uzip(4)
  
  MFC after: 2 weeks
  Differential Revision: D3320
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/sys/geom/uncompress/g_uncompress.c

Modified: head/sys/geom/uncompress/g_uncompress.c
==============================================================================
--- head/sys/geom/uncompress/g_uncompress.c	Sun Aug  9 05:54:53 2015	(r286511)
+++ head/sys/geom/uncompress/g_uncompress.c	Sun Aug  9 06:58:06 2015	(r286512)
@@ -111,8 +111,8 @@ g_uncompress_softc_free(struct g_uncompr
 {
 
 	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_UNCOMPRESS);
@@ -518,7 +518,7 @@ g_uncompress_taste(struct g_class *mp, s
 			DPRINTF(("%s: image version too old\n", gp->name));
 			goto err;
 		}
-		printf("%s: GEOM_ULZMA image found\n", gp->name);
+		DPRINTF(("%s: GEOM_ULZMA image found\n", gp->name));
 		break;
 	case 'V':
 		type = GEOM_UZIP;
@@ -526,7 +526,7 @@ g_uncompress_taste(struct g_class *mp, s
 			DPRINTF(("%s: image version too old\n", gp->name));
 			goto err;
 		}
-		printf("%s: GEOM_UZIP image found\n", gp->name);
+		DPRINTF(("%s: GEOM_UZIP image found\n", gp->name));
 		break;
 	default:
 		DPRINTF(("%s: unsupported image type\n", gp->name));
@@ -622,7 +622,7 @@ g_uncompress_taste(struct g_class *mp, s
 	    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:
@@ -651,7 +651,7 @@ g_uncompress_destroy_geom(struct gctl_re
 	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);
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508090658.t796w7f0010546>