Browse code

udp_server.c: logging: DBG -> LM_DBG

Ovidiu Sas authored on 13/01/2015 14:33:57
Showing 1 changed files
... ...
@@ -90,7 +90,7 @@ static int dbg_msg_qa(char *buf, int len)
90 90
 			case ' ':	if (state==QA_SPACE) {
91 91
 							space_cnt++;
92 92
 							if (space_cnt==4) {
93
-								LM_CRIT("DBG_MSG_QA: too many spaces\n");
93
+								LM_CRIT("too many spaces\n");
94 94
 								return 0;
95 95
 							}
96 96
 						} else space_cnt=0;
... ...
@@ -422,7 +422,7 @@ int udp_rcv_loop()
422 422
 											&fromlen);
423 423
 		if (len==-1){
424 424
 			if (errno==EAGAIN){
425
-				DBG("udp_rcv_loop: packet with bad checksum received\n");
425
+				LM_DBG("packet with bad checksum received\n");
426 426
 				continue;
427 427
 			}
428 428
 			LM_ERR("recvfrom:[%d] %s\n", errno, strerror(errno));
... ...
@@ -452,8 +452,7 @@ int udp_rcv_loop()
452 452
 		if (!unlikely(sr_event_enabled(SREV_STUN_IN)) || (unsigned char)*buf != 0x00) {
453 453
 			if (len<MIN_UDP_PACKET) {
454 454
 				tmp=ip_addr2a(&ri.src_ip);
455
-				DBG("udp_rcv_loop: probing packet received from %s %d\n",
456
-					tmp, htons(ri.src_port));
455
+				LM_DBG("probing packet received from %s %d\n", tmp, htons(ri.src_port));
457 456
 				continue;
458 457
 			}
459 458
 		}