[sr-dev] git:master: error.c: logging: convert LOG to LM_*

Ovidiu Sas osas at voipembedded.com
Fri Oct 3 23:53:39 CEST 2014


Module: sip-router
Branch: master
Commit: 4c2e5693fe00f0326a33954553751d59b42166d3
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4c2e5693fe00f0326a33954553751d59b42166d3

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date:   Fri Oct  3 17:53:34 2014 -0400

error.c: logging: convert LOG to LM_*

---

 error.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/error.c b/error.c
index e203f18..e54c3d1 100644
--- a/error.c
+++ b/error.c
@@ -216,7 +216,7 @@ void get_reply_status( str *status, struct sip_msg *reply, int code )
 	status->s=0;
 
 	if (reply==0) {
-		LOG(L_CRIT, "BUG: get_reply_status called with 0 msg\n");
+		LM_CRIT("0 msg\n");
 		return;
 	}
 
@@ -229,7 +229,7 @@ void get_reply_status( str *status, struct sip_msg *reply, int code )
 	status->len=phrase.len+3/*code*/+1/*space*/; 
 	status->s=pkg_malloc(status->len+1/*ZT */);
 	if (!status->s) {
-		LOG(L_ERR, "ERROR: get_reply_status: no mem\n");
+		LM_ERR("no mem\n");
 		return;
 	}
 	status->s[3]=' ';




More information about the sr-dev mailing list