Module: sip-router
Branch: master
Commit: 6537bcc04971be84c5006a39c76cd58167c177ef
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6537bcc…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Fri Oct 3 20:50:10 2014 -0400
raw_listener.c: logging: convert LOG to LM_*
---
raw_listener.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/raw_listener.c b/raw_listener.c
index 5656a74..5ff9e31 100644
--- a/raw_listener.c
+++ b/raw_listener.c
@@ -101,8 +101,7 @@ 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){
- LOG(L_ERR, "ERROR: raw_udp4_rcv_loop:raw_udp4_recv: %s [%d]\n",
- strerror(errno), errno);
+ LM_ERR("raw_udp4_recv: %s [%d]\n", strerror(errno), errno);
if ((errno==EINTR)||(errno==EWOULDBLOCK))
continue;
else
@@ -128,8 +127,7 @@ int raw_udp4_rcv_loop(int rsock, int port1, int port2)
}
if (ri.src_port==0){
tmp=ip_addr2a(&ri.src_ip);
- LOG(L_INFO, "raw_udp4_rcv_loop: dropping 0 port packet from %s\n",
- tmp);
+ LM_INFO("dropping 0 port packet from %s\n", tmp);
continue;
}
tmp=ip_addr2a(&ri.src_ip);