summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2003-10-23 01:55:03 +0000
committersimokawa <simokawa@FreeBSD.org>2003-10-23 01:55:03 +0000
commit08700a775af8e0a1ea51ff0ef7b16681e29f489a (patch)
treeb73f4cde10396dc521bcc53e69eeca86c2e99a6e /sys
parent9aa04eacb524e094d871563169428ac915ac7242 (diff)
downloadFreeBSD-src-08700a775af8e0a1ea51ff0ef7b16681e29f489a.zip
FreeBSD-src-08700a775af8e0a1ea51ff0ef7b16681e29f489a.tar.gz
Reduce debug messages.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/firewire/fwmem.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/firewire/fwmem.c b/sys/dev/firewire/fwmem.c
index 85aac83..1fbb528 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;
OpenPOWER on IntegriCloud