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

Ovidiu Sas osas at voipembedded.com
Fri Oct 3 22:43:49 CEST 2014


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

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

script_cb.c: logging: convert LOG to LM_*

---

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

diff --git a/script_cb.c b/script_cb.c
index 5a5f848..bf2af24 100644
--- a/script_cb.c
+++ b/script_cb.c
@@ -68,7 +68,7 @@ static inline int add_callback( struct script_cb **list,
 
 	new_cb=pkg_malloc(sizeof(struct script_cb));
 	if (new_cb==0) {
-		LOG(L_CRIT, "add_script_callback: out of memory\n");
+		LM_CRIT("out of memory\n");
 		return -1;
 	}
 	new_cb->cbf = f;
@@ -121,7 +121,7 @@ int register_script_cb( cb_function f, unsigned int flags, void *param )
 	return 0;
 
 add_error:
-	LOG(L_ERR,"register_script_cb: failed to add callback\n");
+	LM_ERR("failed to add callback\n");
 	return -1;
 }
 




More information about the sr-dev mailing list