Browse code

route.c: logging: DBG->LM_DBG

Ovidiu Sas authored on 13/01/2015 15:37:13
Showing 1 changed files
... ...
@@ -370,7 +370,7 @@ static int exp_optimize_left(struct expr* exp)
370 370
 		}
371 371
 	}
372 372
 	if (ret>0)
373
-		DBG("left EXP optimized: op%d(_O%d_, ST%d) => op%d(_O%d_, ST%d)\n",
373
+		LM_DBG("op%d(_O%d_, ST%d) => op%d(_O%d_, ST%d)\n",
374 374
 			old_op, old_ltype, old_rtype, exp->op, exp->l_type, exp->r_type);
375 375
 	return ret;
376 376
 }
... ...
@@ -468,7 +468,7 @@ static int exp_optimize_right(struct expr* exp)
468 468
 		}
469 469
 	}
470 470
 	if (ret>0)
471
-		DBG("right EXP optimized: op%d(O%d, _ST%d_) => op%d(O%d, _ST%d_)\n",
471
+		LM_DBG("op%d(O%d, _ST%d_) => op%d(O%d, _ST%d_)\n",
472 472
 			old_op, old_ltype, old_rtype, exp->op, exp->l_type, exp->r_type);
473 473
 	return ret;
474 474
 }
... ...
@@ -869,7 +869,7 @@ int fix_actions(struct action* a)
869 869
 				cmd = t->val[0].u.data;
870 870
 				rve_param_no = 0;
871 871
 				if (cmd) {
872
-					DBG("fixing %s()\n", cmd->name);
872
+					LM_DBG("fixing %s()\n", cmd->name);
873 873
 					if (t->val[1].u.number==0) {
874 874
 						ret = call_fixup(cmd->fixup, 0, 0);
875 875
 						if (ret < 0)
... ...
@@ -1700,7 +1700,7 @@ inline static int comp_ip(int op, struct ip_addr* ip, int rtype,
1700 1700
 			/* 2: resolve (name) & compare w/ all the ips */
1701 1701
 			he=resolvehost(right->s);
1702 1702
 			if (he==0){
1703
-				DBG("comp_ip: could not resolve %s\n", r->str.s);
1703
+				LM_DBG("could not resolve %s\n", r->str.s);
1704 1704
 			}else if (he->h_addrtype==ip->af){
1705 1705
 				for(h=he->h_addr_list;(ret!=1)&& (*h); h++){
1706 1706
 					ret=(memcmp(ip->u.addr, *h, ip->len)==0);
... ...
@@ -1735,7 +1735,7 @@ inline static int comp_ip(int op, struct ip_addr* ip, int rtype,
1735 1735
 			/* 2: resolve (name) & compare w/ all the ips */
1736 1736
 			he=resolvehost(right->s);
1737 1737
 			if (he==0){
1738
-				DBG("comp_ip: could not resolve %s\n", r->str.s);
1738
+				LM_DBG("could not resolve %s\n", r->str.s);
1739 1739
 			}else if (he->h_addrtype==ip->af){
1740 1740
 				for(h=he->h_addr_list;(ret!=1)&& (*h); h++){
1741 1741
 					ret=(memcmp(ip->u.addr, *h, ip->len)==0);
... ...
@@ -2126,7 +2126,7 @@ static void print_rl(struct route_list* rt, char* name)
2126 2126
 	for(j=0; j<rt->entries; j++){
2127 2127
 		if (rt->rlist[j]==0){
2128 2128
 			if ((j==0) && (rt==&main_rt))
2129
-				DBG("WARNING: the main routing table is empty\n");
2129
+				LM_DBG("WARNING: the main routing table is empty\n");
2130 2130
 			continue;
2131 2131
 		}
2132 2132
 		DBG("%s routing table %d:\n", name, j);