Browse code

socket_info.c: logging: DBG -> LM_DBG

Ovidiu Sas authored on 13/01/2015 14:54:09
Showing 1 changed files
... ...
@@ -555,16 +555,14 @@ retry:
555 555
 		if (list==0) /* disabled or unknown protocol */
556 556
 			continue;
557 557
 		for (si=*list; si; si=si->next){
558
-			DBG("grep_sock_info - checking if host==us: %d==%d &&"
559
-					" [%.*s] == [%.*s]\n",
558
+			LM_DBG("checking if host==us: %d==%d && [%.*s] == [%.*s]\n",
560 559
 						hname.len,
561 560
 						si->name.len,
562 561
 						hname.len, hname.s,
563 562
 						si->name.len, si->name.s
564 563
 				);
565 564
 			if (port) {
566
-				DBG("grep_sock_info - checking if port %d (advertise %d)"
567
-						" matches port %d\n",
565
+				LM_DBG("checking if port %d (advertise %d) matches port %d\n",
568 566
 						si->port_no, si->useinfo.port_no, port);
569 567
 				if (si->port_no!=port && si->useinfo.port_no!=port) {
570 568
 					continue;
... ...
@@ -575,7 +573,7 @@ retry:
575 575
 				goto found;
576 576
 			if(si->useinfo.name.s!=NULL)
577 577
 			{
578
-				DBG("grep_sock_info - checking advertise if host==us:"
578
+				LM_DBG("checking advertise if host==us:"
579 579
 						" %d==%d && [%.*s] == [%.*s]\n",
580 580
 						hname.len,
581 581
 						si->useinfo.name.len,
... ...
@@ -632,8 +630,7 @@ struct socket_info* grep_sock_info_by_port(unsigned short port,
632 632
 			continue;
633 633
 		
634 634
 		for (si=*list; si; si=si->next){
635
-			DBG("grep_sock_info_by_port - checking if port %d matches"
636
-					" port %d\n", si->port_no, port);
635
+			LM_DBG("checking if port %d matches port %d\n", si->port_no, port);
637 636
 			if (si->port_no==port) {
638 637
 				goto found;
639 638
 			}
... ...
@@ -1160,9 +1157,10 @@ int add_interfaces_via_netlink(char* if_name, int family, unsigned short port,
1160 1160
 			//if(! (ifaces[i].flags & IFF_UP) ) continue;
1161 1161
 
1162 1162
 			for(tmp = ifaces[i].addresses; tmp; tmp = tmp->next){
1163
-				LM_DBG("\t in add_iface_via_netlink Name %s Address %s\n", ifaces[i].name, tmp->addr);
1164
-		                /* match family */
1165
-                                if (family == tmp->family){
1163
+				LM_DBG("in add_iface_via_netlink Name %s Address %s\n",
1164
+							ifaces[i].name, tmp->addr);
1165
+					/* match family */
1166
+					if (family == tmp->family){
1166 1167
 					/* check if loopback */
1167 1168
 					if (ifaces[i].flags & IFF_LOOPBACK){
1168 1169
 						LM_DBG("INTERFACE %s is loopback", ifaces[i].name);
... ...
@@ -1542,7 +1540,7 @@ static int fix_socket_list(struct socket_info **list, int* type_flags)
1542 1542
 	}
1543 1543
 	/* get ips & fill the port numbers*/
1544 1544
 #ifdef EXTRA_DEBUG
1545
-	DBG("Listening on \n");
1545
+	LM_DBG("Listening on\n");
1546 1546
 #endif
1547 1547
 	for (si=*list;si;si=si->next){
1548 1548
 		/* fix port number, port_no should be !=0 here */