Browse code

raw_listener.c: logging: DBG -> LM_DBG

Ovidiu Sas authored on 13/01/2015 17:28:42
Showing 1 changed files
... ...
@@ -97,13 +97,13 @@ int raw_udp4_rcv_loop(int rsock, int port1, int port2)
97 97
 		len=raw_udp4_recv(rsock, &p, BUF_SIZE, &from, &to, &rf);
98 98
 		if (len<0){
99 99
 			if (len==-1){
100
-				LM_ERR("raw_udp4_recv: %s [%d]\n", strerror(errno), errno);
100
+				LM_ERR("%s [%d]\n", strerror(errno), errno);
101 101
 				if ((errno==EINTR)||(errno==EWOULDBLOCK))
102 102
 					continue;
103 103
 				else
104 104
 					goto error;
105 105
 			}else{
106
-				DBG("raw_udp4_rcv_loop: raw_udp4_recv error: %d\n", len);
106
+				LM_DBG("error len: %d\n", len);
107 107
 				continue;
108 108
 			}
109 109
 		}
... ...
@@ -117,7 +117,7 @@ int raw_udp4_rcv_loop(int rsock, int port1, int port2)
117 117
 		/* sanity checks */
118 118
 		if (len<MIN_UDP_PACKET){
119 119
 			tmp=ip_addr2a(&ri.src_ip);
120
-			DBG("raw_udp4_rcv_loop: probing packet received from %s %d\n",
120
+			LM_DBG("probing packet received from %s %d\n",
121 121
 					tmp, htons(ri.src_port));
122 122
 			continue;
123 123
 		}
... ...
@@ -127,7 +127,7 @@ int raw_udp4_rcv_loop(int rsock, int port1, int port2)
127 127
 			continue;
128 128
 		}
129 129
 		tmp=ip_addr2a(&ri.src_ip);
130
-		DBG("raw_udp4_rcv_loop: received from %s:\n[%.*s]\n", tmp, len, p);
130
+		LM_DBG("received from %s:\n[%.*s]\n", tmp, len, p);
131 131
 		receive_msg(p, len, &ri);
132 132
 	}
133 133
 error: