[svn-commits] sruffell: linux/trunk r9320 - /linux/trunk/drivers/dahdi/wct4xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Sep 13 21:20:54 CDT 2010


Author: sruffell
Date: Mon Sep 13 21:20:49 2010
New Revision: 9320

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9320
Log:
wct4xxp: Put two DMA messages behind debug flag.

Signed-off-by: Shaun Ruffell <sruffell at digium.com>

Modified:
    linux/trunk/drivers/dahdi/wct4xxp/base.c

Modified: linux/trunk/drivers/dahdi/wct4xxp/base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/wct4xxp/base.c?view=diff&rev=9320&r1=9319&r2=9320
==============================================================================
--- linux/trunk/drivers/dahdi/wct4xxp/base.c (original)
+++ linux/trunk/drivers/dahdi/wct4xxp/base.c Mon Sep 13 21:20:49 2010
@@ -3724,9 +3724,12 @@
 	memset((void *)wc->writechunk,0x00, T4_BASE_SIZE * numbufs);
 	memset((void *)wc->readchunk,0xff, T4_BASE_SIZE * numbufs);
 
-	dev_notice(&wc->dev->dev, "DMA memory base of size %d at %p.  Read: "
-		"%p and Write %p\n", numbufs * T4_BASE_SIZE * 2,
-		wc->writechunk, wc->readchunk, wc->writechunk);
+	if (debug) {
+		dev_notice(&wc->dev->dev, "DMA memory base of size %d at " \
+			"%p.  Read: %p and Write %p\n",
+			numbufs * T4_BASE_SIZE * 2, wc->writechunk,
+			wc->readchunk, wc->writechunk);
+	}
 
 	return 0;
 }
@@ -4831,8 +4834,10 @@
 	t4_pci_out(wc, WC_GPIO, wc->gpio);
 	t4_pci_out(wc, WC_LEDS, 0x00000000);
 
-	dev_notice(&wc->dev->dev, "\nStopped TE%dXXP, Turned off DMA\n",
-			wc->numspans);
+	if (debug) {
+		dev_notice(&wc->dev->dev, "Stopped TE%dXXP, Turned off DMA\n",
+				wc->numspans);
+	}
 	return 0;
 }
 




More information about the svn-commits mailing list