summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-05-16 23:21:05 +0000
committermattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-05-16 23:21:05 +0000
commitb546ba7fb43ae870510ac7e0518ff0f8faba436e (patch)
treeb2e63e04c4522079c70d575faa90edd4cc2bd0b6
parent334fb5ab7e1e4e17674216708fcaf3b512d3887b (diff)
Make sure debug messages are only on when debug is enabled
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2519 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r--wct4xxp/base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wct4xxp/base.c b/wct4xxp/base.c
index b91239b..b5581af 100644
--- a/wct4xxp/base.c
+++ b/wct4xxp/base.c
@@ -899,11 +899,11 @@ static inline void t4_framer_cmd_wait(struct t4 *wc, unsigned int span, int cmd)
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);