From 0c0745c2b640d13b734e38318291eb98a92a2ce3 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Tue, 14 Sep 2010 02:20:49 +0000 Subject: wct4xxp: Put two DMA messages behind debug flag. Signed-off-by: Shaun Ruffell git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9320 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wct4xxp/base.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'drivers/dahdi/wct4xxp/base.c') diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index 946631e..112604d 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -3724,9 +3724,12 @@ static int t4_allocate_buffers(struct t4 *wc, int numbufs, volatile unsigned int 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 @@ static int t4_hardware_stop(struct t4 *wc) 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; } -- cgit v1.2.3