Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci move debugging code inside ifdef debug
details: https://anonhg.NetBSD.org/src/rev/f6098f34019e
branches: trunk
changeset: 790779:f6098f34019e
user: christos <christos%NetBSD.org@localhost>
date: Sun Oct 20 21:06:09 2013 +0000
description:
move debugging code inside ifdef debug
diffstat:
sys/dev/pci/azalia.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (47 lines):
diff -r 3c0e0ad94832 -r f6098f34019e sys/dev/pci/azalia.c
--- a/sys/dev/pci/azalia.c Sun Oct 20 21:05:47 2013 +0000
+++ b/sys/dev/pci/azalia.c Sun Oct 20 21:06:09 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: azalia.c,v 1.79 2011/11/24 03:35:58 mrg Exp $ */
+/* $NetBSD: azalia.c,v 1.80 2013/10/20 21:06:09 christos Exp $ */
/*-
* Copyright (c) 2005, 2008 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: azalia.c,v 1.79 2011/11/24 03:35:58 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: azalia.c,v 1.80 2013/10/20 21:06:09 christos Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -1314,10 +1314,11 @@
{
#ifdef AZALIA_DEBUG
char flagbuf[FLAGBUFLEN];
+ int prev_dac = this->dacs.cur;
+ int prev_adc = this->adcs.cur;
#endif
const convgroup_t *group;
uint32_t bits_rates;
- int prev_dac, prev_adc;
int variation;
int nbits, c, chan, i, err;
nid_t nid;
@@ -1325,7 +1326,6 @@
variation = 0;
chan = 0;
- prev_dac = this->dacs.cur;
if (newdac >= 0 && newdac < this->dacs.ngroups) {
this->dacs.cur = newdac;
group = &this->dacs.groups[this->dacs.cur];
@@ -1349,7 +1349,6 @@
variation = group->nconv * nbits;
}
- prev_adc = this->adcs.cur;
if (newadc >= 0 && newadc < this->adcs.ngroups) {
this->adcs.cur = newadc;
group = &this->adcs.groups[this->adcs.cur];
Home |
Main Index |
Thread Index |
Old Index