From ad076ee67b55edfc94840f9d7bc02c9cd96d1f21 Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Sat, 13 Oct 2007 16:00:09 +0000 Subject: [PATCH] Make sure that we only output the message handling debug when we're actually debugging git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@473 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q921.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/q921.c b/q921.c index 6a05410..1e24b31 100644 --- a/q921.c +++ b/q921.c @@ -1062,7 +1062,8 @@ static pri_event *__q921_receive(struct pri *pri, q921_h *h, int len) } } - pri_message(pri, "Handling message for SAPI/TEI=%d/%d\n", h->h.sapi, h->h.tei); + if (pri->debug & PRI_DEBUG_Q921_DUMP) + pri_message(pri, "Handling message for SAPI/TEI=%d/%d\n", h->h.sapi, h->h.tei); ev = __q921_receive_qualified(pri, h, len); reschedule_t203(pri); return ev;