Browse code

dst_blacklist.c: logging: convert LOG to LM_*

Ovidiu Sas authored on 04/10/2014 00:16:23
Showing 1 changed files
... ...
@@ -222,7 +222,7 @@ static int init_blacklist_hooks()
222 222
 		goto error;
223 223
 	return 0;
224 224
 error:
225
-	LOG(L_ERR, "blacklist_hooks: failure initializing internal lists\n");
225
+	LM_ERR("failure initializing internal lists\n");
226 226
 	destroy_blacklist_hooks();
227 227
 	return -1;
228 228
 }
... ...
@@ -240,7 +240,7 @@ int register_blacklist_hook(struct blacklist_hook *h, int type)
240 240
 	int new_max_hooks;
241 241
 
242 242
 	if (dst_blacklist_init==0) {
243
-		LOG(L_ERR, "register_blacklist_hook: blacklist is turned off, "
243
+		LM_ERR("blacklist is turned off, "
244 244
 			"the hook cannot be registered\n");
245 245
 		goto error;
246 246
 	}
... ...
@@ -500,7 +500,7 @@ int init_dst_blacklist()
500 500
 	if (blst_timer_interval){
501 501
 		timer_init(blst_timer_h, blst_timer, 0 ,0); /* slow timer */
502 502
 		if (timer_add(blst_timer_h, S_TO_TICKS(blst_timer_interval))<0){
503
-			LOG(L_CRIT, "BUG: init_dst_blacklist: failed to add the timer\n");
503
+			LM_CRIT("failed to add the timer\n");
504 504
 			timer_free(blst_timer_h);
505 505
 			blst_timer_h=0;
506 506
 			goto error;
... ...
@@ -1173,8 +1173,7 @@ void dst_blst_add(rpc_t* rpc, void* ctx)
1173 1173
 int use_dst_blacklist_fixup(void *handle, str *gname, str *name, void **val)
1174 1174
 {
1175 1175
 	if ((int)(long)(*val) && !dst_blacklist_init) {
1176
-		LOG(L_ERR, "ERROR: use_dst_blacklist_fixup(): "
1177
-			"dst blacklist is turned off by dst_blacklist_init=0, "
1176
+		LM_ERR("dst blacklist is turned off by dst_blacklist_init=0, "
1178 1177
 			"it cannot be enabled runtime.\n");
1179 1178
 		return -1;
1180 1179
 	}