[svn-commits] sruffell: branch linux/sruffell/chan_list_refactoring r9275 - /linux/team/sru...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Sep 2 12:41:19 CDT 2010
Author: sruffell
Date: Thu Sep 2 12:41:08 2010
New Revision: 9275
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9275
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.
Modified:
linux/team/sruffell/chan_list_refactoring/drivers/dahdi/dahdi-base.c
Modified: linux/team/sruffell/chan_list_refactoring/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/chan_list_refactoring/drivers/dahdi/dahdi-base.c?view=diff&rev=9275&r1=9274&r2=9275
==============================================================================
--- linux/team/sruffell/chan_list_refactoring/drivers/dahdi/dahdi-base.c (original)
+++ linux/team/sruffell/chan_list_refactoring/drivers/dahdi/dahdi-base.c Thu Sep 2 12:41:08 2010
@@ -2165,23 +2165,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;
@@ -2323,15 +2306,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 svn-commits
mailing list