From b9fe88fcbe6b530f2acfc616dcb18094dcc3891d Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Wed, 16 Jul 2008 15:19:30 +0000 Subject: [PATCH] print timer types in dbg message git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1055 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/plug-in/sipctrl/sip_trans.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/plug-in/sipctrl/sip_trans.cpp b/core/plug-in/sipctrl/sip_trans.cpp index 8dbdc925..ba36ce72 100644 --- a/core/plug-in/sipctrl/sip_trans.cpp +++ b/core/plug-in/sipctrl/sip_trans.cpp @@ -101,7 +101,8 @@ void sip_trans::reset_timer(timer* t, unsigned int timer_type) if(*tp != NULL){ - DBG("Clearing old timer of type %p\n",(void*)(*tp)->type); + DBG("Clearing old timer of type %c\n", + (*tp)->type?'A'+(*tp)->type-1:'0'); wheeltimer::instance()->remove_timer(*tp); } @@ -146,7 +147,8 @@ void sip_trans::reset_timer(unsigned int timer_type, unsigned int expire_delay / unsigned int expires = expire_delay / (TIMER_RESOLUTION/1000); expires += wt->wall_clock; - DBG("New timer of type 0x%x at time=%i\n",timer_type,expires); + DBG("New timer of type %c at time=%i\n", + timer_type?'A'+timer_type-1:'0',expires); timer* t = new timer(timer_type,expires, (timer_cb)trans_timer_cb,