aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-14 16:40:42 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-14 16:40:42 +0000
commitc7be6954611c1b6ccfbf8a4f9ddf5f9e4f58a902 (patch)
tree5b52a2f7f052e7f12b96d23a64d9ec643d42cad0 /channels
parent8202df76336d9772ec6e776c1e8db61740b87986 (diff)
collapse debug code in retrans_pkt into separate lines
I've been working in this function a bunch lately, and these huge debug strings are getting annoying. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@276392 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index d27f3c843..cb981dc86 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3241,13 +3241,20 @@ static int retrans_pkt(const void *data)
pkt->retrans++;
if (!pkt->timer_t1) { /* Re-schedule using timer_a and timer_t1 */
if (sipdebug) {
- ast_debug(4, "SIP TIMER: Not rescheduling id #%d:%s (Method %d) (No timer T1)\n", pkt->retransid, sip_methods[pkt->method].text, pkt->method);
+ ast_debug(4, "SIP TIMER: Not rescheduling id #%d:%s (Method %d) (No timer T1)\n",
+ pkt->retransid,
+ sip_methods[pkt->method].text,
+ pkt->method);
}
} else {
int siptimer_a;
if (sipdebug) {
- ast_debug(4, "SIP TIMER: Rescheduling retransmission #%d (%d) %s - %d\n", pkt->retransid, pkt->retrans, sip_methods[pkt->method].text, pkt->method);
+ ast_debug(4, "SIP TIMER: Rescheduling retransmission #%d (%d) %s - %d\n",
+ pkt->retransid,
+ pkt->retrans,
+ sip_methods[pkt->method].text,
+ pkt->method);
}
if (!pkt->timer_a) {
pkt->timer_a = 2 ;
@@ -3263,7 +3270,11 @@ static int retrans_pkt(const void *data)
/* Reschedule re-transmit */
reschedule = siptimer_a;
- ast_debug(4, "** SIP timers: Rescheduling retransmission %d to %d ms (t1 %d ms (Retrans id #%d)) \n", pkt->retrans +1, siptimer_a, pkt->timer_t1, pkt->retransid);
+ ast_debug(4, "** SIP timers: Rescheduling retransmission %d to %d ms (t1 %d ms (Retrans id #%d)) \n",
+ pkt->retrans + 1,
+ siptimer_a,
+ pkt->timer_t1,
+ pkt->retransid);
}
if (sip_debug_test_pvt(pkt->owner)) {