Module: kamailio
Branch: master
Commit: 86513b9ed72790f8353a0aa0f31e2d1626ac09c8
URL:
https://github.com/kamailio/kamailio/commit/86513b9ed72790f8353a0aa0f31e2d1…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: 2015-01-13T12:28:42-05:00
raw_listener.c: logging: DBG -> LM_DBG
---
Modified: raw_listener.c
---
Diff:
https://github.com/kamailio/kamailio/commit/86513b9ed72790f8353a0aa0f31e2d1…
Patch:
https://github.com/kamailio/kamailio/commit/86513b9ed72790f8353a0aa0f31e2d1…
---
diff --git a/raw_listener.c b/raw_listener.c
index ec9c447..ab096f3 100644
--- a/raw_listener.c
+++ b/raw_listener.c
@@ -97,13 +97,13 @@ int raw_udp4_rcv_loop(int rsock, int port1, int port2)
len=raw_udp4_recv(rsock, &p, BUF_SIZE, &from, &to, &rf);
if (len<0){
if (len==-1){
- LM_ERR("raw_udp4_recv: %s [%d]\n", strerror(errno), errno);
+ LM_ERR("%s [%d]\n", strerror(errno), errno);
if ((errno==EINTR)||(errno==EWOULDBLOCK))
continue;
else
goto error;
}else{
- DBG("raw_udp4_rcv_loop: raw_udp4_recv error: %d\n", len);
+ LM_DBG("error len: %d\n", len);
continue;
}
}
@@ -117,7 +117,7 @@ int raw_udp4_rcv_loop(int rsock, int port1, int port2)
/* sanity checks */
if (len<MIN_UDP_PACKET){
tmp=ip_addr2a(&ri.src_ip);
- DBG("raw_udp4_rcv_loop: probing packet received from %s %d\n",
+ LM_DBG("probing packet received from %s %d\n",
tmp, htons(ri.src_port));
continue;
}
@@ -127,7 +127,7 @@ int raw_udp4_rcv_loop(int rsock, int port1, int port2)
continue;
}
tmp=ip_addr2a(&ri.src_ip);
- DBG("raw_udp4_rcv_loop: received from %s:\n[%.*s]\n", tmp, len, p);
+ LM_DBG("received from %s:\n[%.*s]\n", tmp, len, p);
receive_msg(p, len, &ri);
}
error: