From 8ce4f690c1d7cfb064c82dadcbff8be9e03a0954 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 4 Oct 2002 10:06:19 +0000 Subject: [PATCH] Properly conditionalize a debugging printf. Sponsored by: DARPA & NAI Labs. --- sys/geom/geom_disk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index 858e0e35e904..e12bc9d75697 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -103,9 +103,12 @@ g_disk_kerneldump(struct bio *bp, struct disk *dp) int error; struct g_kerneldump *gkd; struct dumperinfo di; + struct g_geom *gp; gkd = (struct g_kerneldump*)bp->bio_data; - printf("Kerneldump off=%jd len=%jd\n", (intmax_t)gkd->offset, (intmax_t)gkd->length); + gp = bp->bio_to->geom; + g_trace(G_T_TOPOLOGY, "g_disk_kernedump(%s, %jd, %jd)", + gp->name, (intmax_t)gkd->offset, (intmax_t)gkd->length); di.dumper = (dumper_t *)dp->d_devsw->d_dump; di.priv = dp->d_dev; di.blocksize = dp->d_sectorsize;