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

Ovidiu Sas osas at voipembedded.com
Fri Oct 3 23:50:57 CEST 2014


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

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

data_lump_rpl.c: logging: convert LOG to LM_*

---

 data_lump_rpl.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/data_lump_rpl.c b/data_lump_rpl.c
index d47c9f4..c5231e5 100644
--- a/data_lump_rpl.c
+++ b/data_lump_rpl.c
@@ -60,11 +60,11 @@ struct lump_rpl** add_lump_rpl2(struct sip_msg *msg, char *s,
 	/* some checking */
 	if ( (flags&(LUMP_RPL_HDR|LUMP_RPL_BODY))==(LUMP_RPL_HDR|LUMP_RPL_BODY)
 	|| (flags&(LUMP_RPL_HDR|LUMP_RPL_BODY))==0 || (flags&LUMP_RPL_SHMEM) ) {
-		LOG(L_ERR,"ERROR:add_lump_rpl: bad flags combination (%d)!\n",flags);
+		LM_ERR("bad flags combination (%d)!\n",flags);
 		goto error;
 	}
 	if (len<=0 || s==0) {
-		LOG(L_ERR,"ERROR:add_lump_rpl: I won't add an empty lump!\n");
+		LM_ERR("I won't add an empty lump!\n");
 		goto error;
 	}
 
@@ -72,7 +72,7 @@ struct lump_rpl** add_lump_rpl2(struct sip_msg *msg, char *s,
 	lump = (struct lump_rpl*) pkg_malloc
 		( sizeof(struct lump_rpl) + ((flags&LUMP_RPL_NODUP)?0:len) );
 	if (!lump) {
-		LOG(L_ERR,"ERROR:add_lump_rpl : no free pkg memory !\n");
+		LM_ERR("no free pkg memory !\n");
 		goto error;
 	}
 
@@ -96,8 +96,7 @@ struct lump_rpl** add_lump_rpl2(struct sip_msg *msg, char *s,
 		else
 			for(foo=msg->reply_lump; ;foo=foo->next) {
 				if (foo->flags&LUMP_RPL_BODY) {
-					LOG(L_ERR,"ERROR:add_lump_rpl: LUMP_RPL_BODY "
-						"already added!\n");
+					LM_ERR("LUMP_RPL_BODY already added!\n");
 					pkg_free(lump);
 					goto error;
 				}




More information about the sr-dev mailing list