[dahdi-commits] sruffell: linux/trunk r6628 - /linux/trunk/drivers/dahdi/voicebus/GpakCust.c

SVN commits to the DAHDI project dahdi-commits at lists.digium.com
Fri May 15 18:37:20 CDT 2009


Author: sruffell
Date: Fri May 15 18:37:16 2009
New Revision: 6628

URL: http://svn.asterisk.org/svn-view/dahdi?view=rev&rev=6628
Log:
voicebus: Use '&' not '|' when checking for a bit.

Modified:
    linux/trunk/drivers/dahdi/voicebus/GpakCust.c

Modified: linux/trunk/drivers/dahdi/voicebus/GpakCust.c
URL: http://svn.asterisk.org/svn-view/dahdi/linux/trunk/drivers/dahdi/voicebus/GpakCust.c?view=diff&rev=6628&r1=6627&r2=6628
==============================================================================
--- linux/trunk/drivers/dahdi/voicebus/GpakCust.c (original)
+++ linux/trunk/drivers/dahdi/voicebus/GpakCust.c Fri May 15 18:37:16 2009
@@ -225,7 +225,7 @@
 	} else {
 		control = EnableMuLawSwCompanding;
 	}
-	if (vpm->options.debug | DEBUG_ECHOCAN) {
+	if (vpm->options.debug & DEBUG_ECHOCAN) {
 		const char *law;
 		law = (control == EnableMuLawSwCompanding) ? "MuLaw" : "ALaw";
 		printk(KERN_DEBUG "Enabling ecan on channel: %d (%s)\n",
@@ -245,7 +245,7 @@
 	int res;
 	GPAK_AlgControlStat_t pstatus;
 
-	if (vpm->options.debug | DEBUG_ECHOCAN)
+	if (vpm->options.debug & DEBUG_ECHOCAN)
 		printk(KERN_DEBUG "Disabling ecan on channel: %d\n", channel);
 
 	res = gpakAlgControl(vpm->dspid, channel, BypassSwCompanding, &pstatus);




More information about the dahdi-commits mailing list