summaryrefslogtreecommitdiffstats
path: root/sys/dev/pcm/isa
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1998-10-08 20:55:54 +0000
committerdes <des@FreeBSD.org>1998-10-08 20:55:54 +0000
commite3725de368b6d9dbda5f2ebf973433304f7d0acd (patch)
tree1285129b5e7f827233ed36c7afaf3f2faf2a0a30 /sys/dev/pcm/isa
parent0754b967d88b0e1cc6357bc8a3cab865dbb290b5 (diff)
downloadFreeBSD-src-e3725de368b6d9dbda5f2ebf973433304f7d0acd.zip
FreeBSD-src-e3725de368b6d9dbda5f2ebf973433304f7d0acd.tar.gz
Make that annoying "device busy" message dependent on DEBUG (using the
DEB macro). There are probably quite a few other messages that warrant a similar treatment, and many more that should be converted to plain log messages (e.g. "WARNING: wrintr but write DMA inactive!"). Now that I think of it, same goes for the CAM code (e.g. the famed "tagged openings" message)
Diffstat (limited to 'sys/dev/pcm/isa')
-rw-r--r--sys/dev/pcm/isa/sb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pcm/isa/sb.c b/sys/dev/pcm/isa/sb.c
index 349a7e2..96d0e62 100644
--- a/sys/dev/pcm/isa/sb.c
+++ b/sys/dev/pcm/isa/sb.c
@@ -172,7 +172,7 @@ sb_dsp_open(dev_t dev, int flags, int mode, struct proc * p)
DEB(printf("<%s>%d : open\n", d->name, unit));
if (d->flags & SND_F_BUSY) {
- printf("<%s>%d open: device busy\n", d->name, unit);
+ DEB(printf("<%s>%d open: device busy\n", d->name, unit));
return EBUSY ;
}
OpenPOWER on IntegriCloud