[sr-dev] git:master: xlog: restructure functions
Klaus Darilion
klaus.mailinglists at pernau.at
Sun Feb 26 23:24:47 CET 2012
Module: sip-router
Branch: master
Commit: 8831d195c8edfb021f288eb685d8621512dcb3fe
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8831d195c8edfb021f288eb685d8621512dcb3fe
Author: Klaus Darilion <klaus.mailinglists at pernau.at>
Committer: klaus darilion <darilion at gucci.labs.nic.at>
Date: Sun Feb 26 19:04:56 2012 +0100
xlog: restructure functions
- restructure functions for better readability, no code changes
---
modules_k/xlog/xlog.c | 42 +++++++++++++++++++++---------------------
1 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/modules_k/xlog/xlog.c b/modules_k/xlog/xlog.c
index 0412b25..28e6926 100644
--- a/modules_k/xlog/xlog.c
+++ b/modules_k/xlog/xlog.c
@@ -195,6 +195,17 @@ static int xlog_1(struct sip_msg* msg, char* frm, char* str2)
}
/**
+ * print log message to L_ERR level along with cfg line
+ */
+static int xlogl_1(struct sip_msg* msg, char* frm, char* str2)
+{
+ if(!is_printable(L_ERR))
+ return 1;
+
+ return xlog_helper(msg, (xl_msg_t*)frm, L_ERR, 1);
+}
+
+/**
* print log message to level given in parameter
*/
static int xlog_2(struct sip_msg* msg, char* lev, char* frm)
@@ -224,27 +235,6 @@ static int xlog_2(struct sip_msg* msg, char* lev, char* frm)
}
/**
- * print log message to L_DBG level
- */
-static int xdbg(struct sip_msg* msg, char* frm, char* str2)
-{
- if(!is_printable(L_DBG))
- return 1;
- return xlog_helper(msg, (xl_msg_t*)frm, L_DBG, 0);
-}
-
-/**
- * print log message to L_ERR level along with cfg line
- */
-static int xlogl_1(struct sip_msg* msg, char* frm, char* str2)
-{
- if(!is_printable(L_ERR))
- return 1;
-
- return xlog_helper(msg, (xl_msg_t*)frm, L_ERR, 1);
-}
-
-/**
* print log message to level given in parameter along with cfg line
*/
static int xlogl_2(struct sip_msg* msg, char* lev, char* frm)
@@ -274,6 +264,16 @@ static int xlogl_2(struct sip_msg* msg, char* lev, char* frm)
}
/**
+ * print log message to L_DBG level
+ */
+static int xdbg(struct sip_msg* msg, char* frm, char* str2)
+{
+ if(!is_printable(L_DBG))
+ return 1;
+ return xlog_helper(msg, (xl_msg_t*)frm, L_DBG, 0);
+}
+
+/**
* print log message to L_DBG level along with cfg line
*/
static int xdbgl(struct sip_msg* msg, char* frm, char* str2)
More information about the sr-dev
mailing list