2
0
Эх сурвалжийг харах

xlog: updates to used log macros

Daniel-Constantin Mierla 5 жил өмнө
parent
commit
6f1c64377d

+ 4 - 4
src/modules/xlog/xlog.c

@@ -235,15 +235,15 @@ static inline int xlog_helper(struct sip_msg* msg, xl_msg_t *xm,
 
 	if(line>0)
 		if(long_format==1)
-			LOG_(facility, level, _xlog_prefix,
+			LOG_FN(facility, level, _xlog_prefix,
 				"%s:%d:%.*s",
 				(xm->a)?(((xm->a->cfile)?xm->a->cfile:"")):"",
 				(xm->a)?xm->a->cline:0, txt.len, txt.s);
 		else
-			LOG_(facility, level, _xlog_prefix,
+			LOG_FN(facility, level, _xlog_prefix,
 				"%d:%.*s", (xm->a)?xm->a->cline:0, txt.len, txt.s);
 	else
-		LOG_(facility, level, _xlog_prefix,
+		LOG_FN(facility, level, _xlog_prefix,
 			"%.*s", txt.len, txt.s);
 	return 1;
 }
@@ -855,7 +855,7 @@ int ki_xlog_ex(sip_msg_t *msg, int llevel, str *lmsg)
 		pv_elem_free_all(xmodel);
 		return -1;
 	}
-	LOG_(xlog_facility, llevel, _xlog_prefix,
+	LOG_FN(xlog_facility, llevel, _xlog_prefix,
 			"%.*s", txt.len, txt.s);;
 	pv_elem_free_all(xmodel);
 	return 1;