From 61ba65809d85cdb12e7eb3e8839c4be46fd860f2 Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Thu, 23 Oct 2003 01:55:03 +0000 Subject: [PATCH] Reduce debug messages. --- sys/dev/firewire/fwmem.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/firewire/fwmem.c b/sys/dev/firewire/fwmem.c index 85aac835d7c..1fbb528b233 100644 --- a/sys/dev/firewire/fwmem.c +++ b/sys/dev/firewire/fwmem.c @@ -295,7 +295,8 @@ fwmem_biodone(struct fw_xfer *xfer) bp->bio_error = xfer->resp; if (bp->bio_error != 0) { - printf("%s: err=%d\n", __FUNCTION__, bp->bio_error); + if (fwmem_debug) + printf("%s: err=%d\n", __FUNCTION__, bp->bio_error); bp->bio_flags |= BIO_ERROR; bp->bio_resid = bp->bio_bcount; } @@ -362,7 +363,8 @@ fwmem_strategy(struct bio *bp) error: splx(s); if (err != 0) { - printf("%s: err=%d\n", __FUNCTION__, err); + if (fwmem_debug) + printf("%s: err=%d\n", __FUNCTION__, err); bp->bio_error = err; bp->bio_flags |= BIO_ERROR; bp->bio_resid = bp->bio_bcount;