From bee242872ee7106f4af3c9775cce357ab6ae2095 Mon Sep 17 00:00:00 2001 From: Jacob Meuser Date: Sat, 9 Oct 2010 09:11:14 +0000 Subject: only print out of sync messages when compiled for debugging --- sys/dev/pci/cmpci.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/dev/pci') diff --git a/sys/dev/pci/cmpci.c b/sys/dev/pci/cmpci.c index 40bcb0e04e3..06f619ef60c 100644 --- a/sys/dev/pci/cmpci.c +++ b/sys/dev/pci/cmpci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmpci.c,v 1.29 2010/10/08 14:01:07 jakemsr Exp $ */ +/* $OpenBSD: cmpci.c,v 1.30 2010/10/09 09:11:13 jakemsr Exp $ */ /* $NetBSD: cmpci.c,v 1.25 2004/10/26 06:32:20 xtraeme Exp $ */ /* @@ -592,8 +592,8 @@ cmpci_intr(void *handle) if (chan->swpos >= chan->nblocks) chan->swpos = 0; if (chan->swpos != hwpos) { - printf("%s: DMA0 hwpos=%d swpos=%d\n", - __func__, hwpos, chan->swpos); + DPRINTF(("%s: DMA0 hwpos=%d swpos=%d\n", + __func__, hwpos, chan->swpos)); } } } @@ -611,8 +611,8 @@ cmpci_intr(void *handle) if (chan->swpos >= chan->nblocks) chan->swpos = 0; if (chan->swpos != hwpos) { - printf("%s: DMA1 hwpos=%d swpos=%d\n", - __func__, hwpos, chan->swpos); + DPRINTF(("%s: DMA1 hwpos=%d swpos=%d\n", + __func__, hwpos, chan->swpos)); } } } -- cgit v1.2.3