[svn-commits] mattf: trunk r2519 - /trunk/wct4xxp/base.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed May 16 16:21:05 MST 2007


Author: mattf
Date: Wed May 16 18:21:05 2007
New Revision: 2519

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2519
Log:
Make sure debug messages are only on when debug is enabled

Modified:
    trunk/wct4xxp/base.c

Modified: trunk/wct4xxp/base.c
URL: http://svn.digium.com/view/zaptel/trunk/wct4xxp/base.c?view=diff&rev=2519&r1=2518&r2=2519
==============================================================================
--- trunk/wct4xxp/base.c (original)
+++ trunk/wct4xxp/base.c Wed May 16 18:21:05 2007
@@ -899,11 +899,11 @@
 		sis = t4_framer_in(wc, span, FRMR_SIS);
 		if (!(sis & 0x04))
 			break;
-		if (!loops++) {
+		if (!loops++ && (debug & DEBUG_FRAMER)) {
 			printk("!!!SIS Waiting before cmd %02x\n", cmd);
 		}
 	}
-	if (loops)
+	if (loops && (debug & DEBUG_FRAMER))
 		printk("!!!SIS waited %d loops\n", loops);
 
 	t4_framer_out(wc, span, FRMR_CMDR, cmd);



More information about the svn-commits mailing list