summaryrefslogtreecommitdiff
path: root/drivers/dahdi/dahdi-base.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-09-20 20:33:39 +0000
committerShaun Ruffell <sruffell@digium.com>2010-09-20 20:33:39 +0000
commit76dfb394c76f52bf38e4d4f0a8b41c2e1207a417 (patch)
tree3e64d1cdd08a66984f0afbc9548d9aab18983682 /drivers/dahdi/dahdi-base.c
parent164760002ac3e75a15ac10a5cd4ef935a8103071 (diff)
dahdi: Remove what appears to be stale debug code in dahdi_chan_read/write.
If someone was still using this...feel free to add it back in with a comment about why it needs to be in the mainline. It looked better to remove it than edit it to make sure it worked. Review: https://reviewboard.asterisk.org/r/905/ Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9370 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi-base.c')
-rw-r--r--drivers/dahdi/dahdi-base.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c
index 19bef19..778d1ec 100644
--- a/drivers/dahdi/dahdi-base.c
+++ b/drivers/dahdi/dahdi-base.c
@@ -2137,23 +2137,6 @@ static ssize_t dahdi_chan_read(struct file *file, char __user *usrbuf,
return rv;
}
amnt = count;
-/* added */
-#if 0
- if ((unit == 24) || (unit == 48) || (unit == 16) || (unit == 47)) {
- int myamnt = amnt;
- int x;
- if (amnt > chan->readn[res])
- myamnt = chan->readn[res];
- module_printk(KERN_NOTICE, "dahdi_chan_read(unit: %d, inwritebuf: %d, outwritebuf: %d amnt: %d\n",
- unit, chan->inwritebuf, chan->outwritebuf, myamnt);
-
- module_printk(KERN_DEBUG, "\t(");
- for (x = 0; x < myamnt; x++)
- printk((x ? " %02x" : "%02x"), (unsigned char)usrbuf[x]);
- printk(")\n");
- }
-#endif
-/* end addition */
if (chan->flags & DAHDI_FLAG_LINEAR) {
if (amnt > (chan->readn[res] << 1))
amnt = chan->readn[res] << 1;
@@ -2295,15 +2278,6 @@ static ssize_t dahdi_chan_write(struct file *file, const char __user *usrbuf,
module_printk(KERN_NOTICE, "dahdi_chan_write(unit: %d, res: %d, outwritebuf: %d amnt: %d\n",
unit, res, chan->outwritebuf, amnt);
#endif
-#if 0
- if ((unit == 24) || (unit == 48) || (unit == 16) || (unit == 47)) {
- int x;
- module_printk(KERN_NOTICE, "dahdi_chan_write/in(unit: %d, res: %d, outwritebuf: %d amnt: %d, txdisable: %d)\n",
- unit, res, chan->outwritebuf, amnt, chan->txdisable);
- module_printk(KERN_DEBUG, "\t("); for (x = 0; x < amnt; x++) module_printk(KERN_DEBUG, (x ? " %02x" : "%02x"), (unsigned char)usrbuf[x]);
- module_printk(KERN_DEBUG, ")\n");
- }
-#endif
if (amnt) {
if (chan->flags & DAHDI_FLAG_LINEAR) {