summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2013-10-16 18:18:54 +0000
committerchristos <christos@NetBSD.org>2013-10-16 18:18:54 +0000
commit363aa42bf165354b5a5f52ed8892261cd63a6eec (patch)
tree5733e94a43accfb512a5b367d2390c05e5aa2d38 /sys/dev
parent8b9f238be3f576bdbf97103ffb455d72aad77fd3 (diff)
use variables that are only used in debugging.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/cs4281.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/pci/cs4281.c b/sys/dev/pci/cs4281.c
index 4f47610ccfd..030d6068236 100644
--- a/sys/dev/pci/cs4281.c
+++ b/sys/dev/pci/cs4281.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cs4281.c,v 1.48 2012/10/27 17:18:31 chs Exp $ */
+/* $NetBSD: cs4281.c,v 1.49 2013/10/16 18:18:54 christos Exp $ */
/*
* Copyright (c) 2000 Tatoku Ogaito. All rights reserved.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cs4281.c,v 1.48 2012/10/27 17:18:31 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cs4281.c,v 1.49 2013/10/16 18:18:54 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -335,8 +335,13 @@ cs4281_intr(void *p)
/* clear the interrupt register */
BA0WRITE4(sc, CS4281_HICR, HICR_CHGM | HICR_IEV);
+#ifdef CS4280_DEBUG
DPRINTF(("intr = 0x%08x, hdsr0 = 0x%08x hdsr1 = 0x%08x\n",
intr, hdsr0, hdsr1));
+#else
+ (void)&hdsr0;
+ (void)&hdsr1;
+#endif
/* Playback Interrupt */
if (intr & HISR_DMA0) {