Browse code

local_timer.c: logging: DBG -> LM_DBG

Ovidiu Sas authored on 13/01/2015 17:47:03
Showing 1 changed files
... ...
@@ -57,7 +57,7 @@ int init_local_timer(struct local_timer *t, ticks_t crt_ticks)
57 57
 	for (r=0; r<H2_ENTRIES; r++)
58 58
 		_timer_init_list(&t->timer_lst.h2[r]);
59 59
 	_timer_init_list(&t->timer_lst.expired);
60
-	DBG("init_local_timer: timer_list between %p and %p\n",
60
+	LM_DBG("timer_list between %p and %p\n",
61 61
 			&t->timer_lst.h0[0], &t->timer_lst.h2[H2_ENTRIES]);
62 62
 	return 0;
63 63
 }
... ...
@@ -141,8 +141,8 @@ int local_timer_add(struct local_timer* h, struct timer_ln* tl, ticks_t delta,
141 141
 	int ret;
142 142
 	
143 143
 	if (unlikely(tl->flags & F_TIMER_ACTIVE)){
144
-		DBG("timer_add called on an active timer %p (%p, %p),"
145
-					" flags %x\n", tl, tl->next, tl->prev, tl->flags);
144
+		LM_DBG("called on an active timer %p (%p, %p), flags %x\n",
145
+				tl, tl->next, tl->prev, tl->flags);
146 146
 		ret=-1; /* refusing to add active or non-reinit. timer */
147 147
 		goto error;
148 148
 	}
... ...
@@ -170,16 +170,15 @@ void local_timer_del(struct local_timer* h, struct timer_ln* tl)
170 170
 {
171 171
 	/* quick exit if timer inactive */
172 172
 	if (unlikely(!(tl->flags & F_TIMER_ACTIVE))){
173
-		DBG("timer_del called on an inactive timer %p (%p, %p),"
174
-					" flags %x\n", tl, tl->next, tl->prev, tl->flags);
173
+		LM_DBG("called on an inactive timer %p (%p, %p), flags %x\n",
174
+				tl, tl->next, tl->prev, tl->flags);
175 175
 		return;
176 176
 	}
177 177
 	if (likely((tl->next!=0)&&(tl->prev!=0))){
178 178
 		_timer_rm_list(tl); /* detach */
179 179
 		tl->next=tl->prev=0;
180 180
 	}else{
181
-		DBG("timer_del: (f) timer %p (%p, %p) flags %x "
182
-			"already detached\n",
181
+		LM_DBG("(f) timer %p (%p, %p) flags %x already detached\n",
183 182
 			tl, tl->next, tl->prev, tl->flags);
184 183
 	}
185 184
 }
... ...
@@ -193,9 +192,7 @@ inline static void local_timer_list_expire(struct local_timer* l,
193 192
 	struct timer_ln * tl;
194 193
 	ticks_t ret;
195 194
 	
196
-	/*DBG("timer_list_expire @ ticks = %lu, list =%p\n",
197
-			(unsigned long) *ticks, h);
198
-	*/
195
+	/*LM_DBG("@ ticks = %lu, list =%p\n", (unsigned long) *ticks, h); */
199 196
 	while(h->next!=(struct timer_ln*)h){
200 197
 		tl=h->next;
201 198
 		_timer_rm_list(tl); /* detach */