[dahdi-commits] sruffell: linux/trunk r9370 - /linux/trunk/drivers/dahdi/dahdi-base.c

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Mon Sep 20 15:33:43 CDT 2010


Author: sruffell
Date: Mon Sep 20 15:33:39 2010
New Revision: 9370

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9370
Log:
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 at digium.com>

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

Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=9370&r1=9369&r2=9370
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Mon Sep 20 15:33:39 2010
@@ -2137,23 +2137,6 @@
 			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;
@@ -2294,15 +2277,6 @@
 #ifdef CONFIG_DAHDI_DEBUG
 	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) {




More information about the dahdi-commits mailing list