Browse code

raw_listener.c: logging: convert LOG to LM_*

Ovidiu Sas authored on 04/10/2014 00:50:10
Showing 1 changed files
... ...
@@ -101,8 +101,7 @@ int raw_udp4_rcv_loop(int rsock, int port1, int port2)
101 101
 		len=raw_udp4_recv(rsock, &p, BUF_SIZE, &from, &to, &rf);
102 102
 		if (len<0){
103 103
 			if (len==-1){
104
-				LOG(L_ERR, "ERROR: raw_udp4_rcv_loop:raw_udp4_recv: %s [%d]\n",
105
-						strerror(errno), errno);
104
+				LM_ERR("raw_udp4_recv: %s [%d]\n", strerror(errno), errno);
106 105
 				if ((errno==EINTR)||(errno==EWOULDBLOCK))
107 106
 					continue;
108 107
 				else
... ...
@@ -128,8 +127,7 @@ int raw_udp4_rcv_loop(int rsock, int port1, int port2)
128 128
 		}
129 129
 		if (ri.src_port==0){
130 130
 			tmp=ip_addr2a(&ri.src_ip);
131
-			LOG(L_INFO, "raw_udp4_rcv_loop: dropping 0 port packet from %s\n",
132
-						tmp);
131
+			LM_INFO("dropping 0 port packet from %s\n", tmp);
133 132
 			continue;
134 133
 		}
135 134
 		tmp=ip_addr2a(&ri.src_ip);