summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_mbr.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-25 20:09:45 +0000
committerphk <phk@FreeBSD.org>2002-10-25 20:09:45 +0000
commitb7e23599cf9a46999e6b321d6868f9d288cff53a (patch)
tree2d61e7b611c052ff6d2d0f974e8314770ee2c1e8 /sys/geom/geom_mbr.c
parentfa9a77e4ba47f2bd293b7762c9468e77080e8824 (diff)
downloadFreeBSD-src-b7e23599cf9a46999e6b321d6868f9d288cff53a.zip
FreeBSD-src-b7e23599cf9a46999e6b321d6868f9d288cff53a.tar.gz
Reduce the GEOM verbosity under bootverbose to something more sufferable.
This is not quite the set of information I would want, but the tree where I have the "correct" version is messed up with conflicts. Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom/geom_mbr.c')
-rw-r--r--sys/geom/geom_mbr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/geom/geom_mbr.c b/sys/geom/geom_mbr.c
index 108a013..23b50c3 100644
--- a/sys/geom/geom_mbr.c
+++ b/sys/geom/geom_mbr.c
@@ -155,13 +155,11 @@ static void
g_mbr_print(int i __unused, struct dos_partition *dp __unused)
{
-#if 0
g_hexdump(dp, sizeof(dp[0]));
printf("[%d] f:%02x typ:%d", i, dp->dp_flag, dp->dp_typ);
printf(" s(CHS):%d/%d/%d", dp->dp_scyl, dp->dp_shd, dp->dp_ssect);
printf(" e(CHS):%d/%d/%d", dp->dp_ecyl, dp->dp_ehd, dp->dp_esect);
printf(" s:%d l:%d\n", dp->dp_start, dp->dp_size);
-#endif
}
static struct g_geom *
@@ -235,7 +233,10 @@ g_mbr_taste(struct g_class *mp, struct g_provider *pp, int insist)
continue;
if (dp[i].dp_size == 0)
continue;
- g_mbr_print(i, dp + i);
+ if (bootverbose) {
+ printf("Slice %d:\n", i + 1);
+ g_mbr_print(i, dp + i);
+ }
npart++;
ms->type[i] = dp[i].dp_typ;
g_topology_lock();
OpenPOWER on IntegriCloud