[svn-commits] tzafrir: linux/trunk r4694 - /linux/trunk/drivers/dahdi/dahdi-base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Aug 4 08:43:19 CDT 2008


Author: tzafrir
Date: Mon Aug  4 08:43:18 2008
New Revision: 4694

URL: http://svn.digium.com/view/dahdi?view=rev&rev=4694
Log:
Fix small regression from r4690: do use channo for printing channel
numbers.

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

Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=4694&r1=4693&r2=4694
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Mon Aug  4 08:43:18 2008
@@ -608,14 +608,14 @@
 		struct dahdi_chan *chan = spans[span]->chans[x];
 
 		if (chan->name)
-			len += sprintf(page + len, "\t%4d %s ", x, chan->name);
+			len += sprintf(page + len, "\t%4d %s ", chan->channo, chan->name);
 
 		if (chan->sig) {
 			if (chan->sig == DAHDI_SIG_SLAVE)
 				len += sprintf(page + len, "%s ", sigstr(chan->master->sig));
 			else {
 				len += sprintf(page + len, "%s ", sigstr(chan->sig));
-				if (chan->nextslave && chan->master->channo == x)
+				if (chan->nextslave && chan->master->channo == chan->channo)
 					len += sprintf(page + len, "Master ");
 			}
 		}




More information about the svn-commits mailing list