[sr-dev] git:master: char_msg_val.h: logging: convert LOG to LM_*

Ovidiu Sas osas at voipembedded.com
Fri Oct 3 20:46:42 CEST 2014


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

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date:   Fri Oct  3 14:43:39 2014 -0400

char_msg_val.h: logging: convert LOG to LM_*

---

 char_msg_val.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/char_msg_val.h b/char_msg_val.h
index e78bd9d..c265bd1 100644
--- a/char_msg_val.h
+++ b/char_msg_val.h
@@ -57,7 +57,7 @@ inline static int char_msg_val( struct sip_msg *msg, char *cv )
 	str src[8];
 
 	if (unlikely(!check_transaction_quadruple(msg))) {
-		LOG(L_ERR, "ERROR: can't calculate char_value due "
+		LM_ERR("can't calculate char_value due "
 			"to a parsing error\n");
 		memset( cv, '0', MD5_LEN );
 		return 0;
@@ -81,7 +81,7 @@ inline static int char_msg_val( struct sip_msg *msg, char *cv )
 	if (msg->from->parsed==0){
 		/* parse from body */
 		if (unlikely(parse_from_header(msg) == -1)){
-			LOG(L_ERR, "error while parsing From header\n");
+			LM_ERR("error while parsing From header\n");
 			return 0;
 		}
 	}




More information about the sr-dev mailing list