[sr-dev] git:master: sip_msg_clone.c: logging: convert LOG to LM_*
Ovidiu Sas
osas at voipembedded.com
Fri Oct 3 23:24:23 CEST 2014
Module: sip-router
Branch: master
Commit: 0b6225253049c0a8af2630bd40f0b908634765cb
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0b6225253049c0a8af2630bd40f0b908634765cb
Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date: Fri Oct 3 17:24:17 2014 -0400
sip_msg_clone.c: logging: convert LOG to LM_*
---
sip_msg_clone.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sip_msg_clone.c b/sip_msg_clone.c
index 40a5e90..8b3f13a 100644
--- a/sip_msg_clone.c
+++ b/sip_msg_clone.c
@@ -335,7 +335,7 @@ static inline int clone_authorized_hooks(struct sip_msg* new,
while(ptr) {
if (ptr == hook1) {
if (!new->authorization || !new->authorization->parsed) {
- LOG(L_CRIT, "BUG: Error in message cloner (authorization)\n");
+ LM_CRIT("Error in message cloner (authorization)\n");
return -1;
}
((struct auth_body*)new->authorization->parsed)->authorized =
@@ -345,7 +345,7 @@ static inline int clone_authorized_hooks(struct sip_msg* new,
if (ptr == hook2) {
if (!new->proxy_auth || !new->proxy_auth->parsed) {
- LOG(L_CRIT, "BUG: Error in message cloner (proxy_auth)\n");
+ LM_CRIT("Error in message cloner (proxy_auth)\n");
return -1;
}
((struct auth_body*)new->proxy_auth->parsed)->authorized =
@@ -504,7 +504,7 @@ struct sip_msg* sip_msg_shm_clone( struct sip_msg *org_msg, int *sip_msg_len,
p=(char *)shm_malloc(len);
if (!p)
{
- LOG(L_ERR , "ERROR: sip_msg_cloner: cannot allocate memory\n" );
+ LM_ERR("cannot allocate memory\n" );
return 0;
}
if (sip_msg_len)
@@ -987,7 +987,7 @@ int msg_lump_cloner(struct sip_msg *pkg_msg,
p=(char *)shm_malloc(len);
if (!p)
{
- LOG(L_ERR, "ERROR: msg_lump_cloner: cannot allocate memory\n" );
+ LM_ERR("cannot allocate memory\n" );
return -1;
}
More information about the sr-dev
mailing list