Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci use variables that are only used in debugging.
details: https://anonhg.NetBSD.org/src/rev/395cbd9fbe07
branches: trunk
changeset: 790530:395cbd9fbe07
user: christos <christos%NetBSD.org@localhost>
date: Wed Oct 16 18:18:54 2013 +0000
description:
use variables that are only used in debugging.
diffstat:
sys/dev/pci/cs4281.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 13fe2ec83693 -r 395cbd9fbe07 sys/dev/pci/cs4281.c
--- a/sys/dev/pci/cs4281.c Wed Oct 16 18:13:00 2013 +0000
+++ b/sys/dev/pci/cs4281.c Wed Oct 16 18:18:54 2013 +0000
@@ -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 @@
/* 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) {
Home |
Main Index |
Thread Index |
Old Index