Browse code

trans_layer: added timers to transaction dump

Stefan Sayer authored on 09/07/2014 13:29:09
Showing 1 changed files
... ...
@@ -280,9 +280,12 @@ const char* sip_trans::state_str() const
280 280
 void sip_trans::dump() const
281 281
 {
282 282
     DBG("type=%s (0x%x); msg=%p; to_tag=%.*s;"
283
-	" reply_status=%i; state=%s (%i); retr_buf=%p\n",
283
+	" reply_status=%i; state=%s (%i); retr_buf=%p; timers [%s,%s,%s]\n",
284 284
 	type_str(),type,msg,to_tag.len,to_tag.s,
285
-	reply_status,state_str(),state,retr_buf);
285
+	reply_status,state_str(),state,retr_buf,
286
+	timers[0]==NULL?"none":timer_name(timers[0]->type),
287
+	timers[1]==NULL?"none":timer_name(timers[1]->type),
288
+	timers[2]==NULL?"none":timer_name(timers[2]->type));
286 289
 }
287 290
 
288 291
 /** EMACS **