[sr-dev] git:master:6f1c6437: xlog: updates to used log macros

Daniel-Constantin Mierla miconda at gmail.com
Sat Feb 15 16:20:13 CET 2020


Module: kamailio
Branch: master
Commit: 6f1c64377d1222a88fb0f86dfe4f879cf2572377
URL: https://github.com/kamailio/kamailio/commit/6f1c64377d1222a88fb0f86dfe4f879cf2572377

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-02-15T16:16:55+01:00

xlog: updates to used log macros

---

Modified: src/modules/xlog/xlog.c

---

Diff:  https://github.com/kamailio/kamailio/commit/6f1c64377d1222a88fb0f86dfe4f879cf2572377.diff
Patch: https://github.com/kamailio/kamailio/commit/6f1c64377d1222a88fb0f86dfe4f879cf2572377.patch

---

diff --git a/src/modules/xlog/xlog.c b/src/modules/xlog/xlog.c
index 2909232dc1..ed167d80ba 100644
--- a/src/modules/xlog/xlog.c
+++ b/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;




More information about the sr-dev mailing list