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

Ovidiu Sas osas at voipembedded.com
Fri Oct 3 23:26:40 CEST 2014


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

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

route_struct.c: logging: convert LOG to LM_*

---

 route_struct.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/route_struct.c b/route_struct.c
index 39c0629..11c11fa 100644
--- a/route_struct.c
+++ b/route_struct.c
@@ -94,7 +94,7 @@ struct expr* mk_exp(int op, struct expr* left, struct expr* right)
 	e->r.expr=right;
 	return e;
 error:
-	LOG(L_CRIT, "ERROR: mk_exp: memory allocation failure\n");
+	LM_CRIT("memory allocation failure\n");
 	return 0;
 }
 
@@ -116,7 +116,7 @@ struct expr* mk_exp_rve(int op, void* left, void* right)
 	}
 	return e;
 error:
-	LOG(L_CRIT, "ERROR: mk_exp_rve: memory allocation failure\n");
+	LM_CRIT("memory allocation failure\n");
 	return 0;
 }
 
@@ -134,7 +134,7 @@ struct expr* mk_elem(int op, expr_l_type ltype, void* lparam,
 	e->r.param=rparam;
 	return e;
 error:
-	LOG(L_CRIT, "ERROR: mk_elem: memory allocation failure\n");
+	LM_CRIT("memory allocation failure\n");
 	return 0;
 }
 
@@ -171,7 +171,7 @@ struct action* mk_action(enum action_type type, int count, ...)
 	return a;
 
 error:
-	LOG(L_CRIT, "ERROR: mk_action: memory allocation failure\n");
+	LM_CRIT("memory allocation failure\n");
 	return 0;
 }
 
@@ -192,7 +192,7 @@ struct action* append_action(struct action* a, struct action* b)
 void print_expr(struct expr* exp)
 {
 	if (exp==0){
-		LOG(L_CRIT, "ERROR: print_expr: null expression!\n");
+		LM_CRIT("null expression!\n");
 		return;
 	}
 	if (exp->type==ELEM_T){




More information about the sr-dev mailing list