From cf83284fe3a313ca4b068e7159d13bd02470fd43 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Wed, 9 Apr 2003 13:52:40 +0000 Subject: [PATCH] Only be verbose if (bootverbose) --- sys/geom/geom_mbr.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/geom/geom_mbr.c b/sys/geom/geom_mbr.c index 53066b8d2d17..05d6d458a617 100644 --- a/sys/geom/geom_mbr.c +++ b/sys/geom/geom_mbr.c @@ -432,9 +432,12 @@ g_mbrext_taste(struct g_class *mp, struct g_provider *pp, int insist __unused) buf + DOSPARTOFF + i * sizeof(struct dos_partition), dp + i); g_free(buf); - printf("MBREXT Slice %d on %s:\n", slice + 5, gp->name); - g_mbr_print(0, dp); - g_mbr_print(1, dp + 1); + if (bootverbose) { + printf("MBREXT Slice %d on %s:\n", + slice + 5, gp->name); + g_mbr_print(0, dp); + g_mbr_print(1, dp + 1); + } if ((dp[0].dp_flag & 0x7f) == 0 && dp[0].dp_size != 0 && dp[0].dp_typ != 0) { g_topology_lock();