Browse code

route_struct.c: logging: convert LOG to LM_*

Ovidiu Sas authored on 03/10/2014 21:26:34
Showing 1 changed files
... ...
@@ -94,7 +94,7 @@ struct expr* mk_exp(int op, struct expr* left, struct expr* right)
94 94
 	e->r.expr=right;
95 95
 	return e;
96 96
 error:
97
-	LOG(L_CRIT, "ERROR: mk_exp: memory allocation failure\n");
97
+	LM_CRIT("memory allocation failure\n");
98 98
 	return 0;
99 99
 }
100 100
 
... ...
@@ -116,7 +116,7 @@ struct expr* mk_exp_rve(int op, void* left, void* right)
116 116
 	}
117 117
 	return e;
118 118
 error:
119
-	LOG(L_CRIT, "ERROR: mk_exp_rve: memory allocation failure\n");
119
+	LM_CRIT("memory allocation failure\n");
120 120
 	return 0;
121 121
 }
122 122
 
... ...
@@ -134,7 +134,7 @@ struct expr* mk_elem(int op, expr_l_type ltype, void* lparam,
134 134
 	e->r.param=rparam;
135 135
 	return e;
136 136
 error:
137
-	LOG(L_CRIT, "ERROR: mk_elem: memory allocation failure\n");
137
+	LM_CRIT("memory allocation failure\n");
138 138
 	return 0;
139 139
 }
140 140
 
... ...
@@ -171,7 +171,7 @@ struct action* mk_action(enum action_type type, int count, ...)
171 171
 	return a;
172 172
 
173 173
 error:
174
-	LOG(L_CRIT, "ERROR: mk_action: memory allocation failure\n");
174
+	LM_CRIT("memory allocation failure\n");
175 175
 	return 0;
176 176
 }
177 177
 
... ...
@@ -192,7 +192,7 @@ struct action* append_action(struct action* a, struct action* b)
192 192
 void print_expr(struct expr* exp)
193 193
 {
194 194
 	if (exp==0){
195
-		LOG(L_CRIT, "ERROR: print_expr: null expression!\n");
195
+		LM_CRIT("null expression!\n");
196 196
 		return;
197 197
 	}
198 198
 	if (exp->type==ELEM_T){