diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-09-14 02:20:49 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-09-14 02:20:49 +0000 |
commit | 0c0745c2b640d13b734e38318291eb98a92a2ce3 (patch) | |
tree | 9b8800ca607bc0c85f62c23c3465cc3275fd4efa /drivers/dahdi/wct4xxp/base.c | |
parent | 545ee239bdce848621d2ffda8ccf949459663eb0 (diff) |
wct4xxp: Put two DMA messages behind debug flag.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9320 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wct4xxp/base.c')
-rw-r--r-- | drivers/dahdi/wct4xxp/base.c | 15 |
1 files changed, 10 insertions, 5 deletions
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; } |