Browse code

local_timer.c: logging: convert LOG to LM_*

Ovidiu Sas authored on 03/10/2014 20:36:35
Showing 1 changed files
... ...
@@ -93,8 +93,7 @@ static inline int _local_timer_dist_tl(struct local_timer* h,
93 93
 {
94 94
 	if (likely(delta<H0_ENTRIES)){
95 95
 		if (unlikely(delta==0)){
96
-			LOG(L_WARN, "WARNING: local_timer: add_timeout: 0 expire timer"
97
-						" added\n");
96
+			LM_WARN("0 expire timer added\n");
98 97
 			_timer_add_list(&h->timer_lst.expired, tl);
99 98
 		}else{
100 99
 			_timer_add_list( &h->timer_lst.h0[tl->expire & H0_MASK], tl);
... ...
@@ -162,8 +161,7 @@ int local_timer_add(struct local_timer* h, struct timer_ln* tl, ticks_t delta,
162 161
 	}
163 162
 	tl->initial_timeout=delta;
164 163
 	if (unlikely((tl->next!=0) || (tl->prev!=0))){
165
-		LOG(L_CRIT, "BUG: tcp_timer_add: called with linked timer:"
166
-				" %p (%p, %p)\n", tl, tl->next, tl->prev);
164
+		LM_CRIT("called with linked timer: %p (%p, %p)\n", tl, tl->next, tl->prev);
167 165
 		ret=-1;
168 166
 		goto error;
169 167
 	}
... ...
@@ -256,7 +254,7 @@ void local_timer_run(struct local_timer* lt, ticks_t saved_ticks)
256 254
 	
257 255
 		/* protect against time running backwards */
258 256
 		if (unlikely(lt->prev_ticks>=saved_ticks)){
259
-			LOG(L_CRIT, "BUG: local_timer: backwards or still time\n");
257
+			LM_CRIT("backwards or still time\n");
260 258
 			/* try to continue */
261 259
 			lt->prev_ticks=saved_ticks-1;
262 260
 			return;