[sr-dev] git:master: mohqueue: fix build error due to get_debug_level api change

Timo Teras timo.teras at iki.fi
Mon Oct 7 16:10:54 CEST 2013


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

Author: Timo Teräs <timo.teras at iki.fi>
Committer: Timo Teräs <timo.teras at iki.fi>
Date:   Mon Oct  7 17:09:59 2013 +0300

mohqueue: fix build error due to get_debug_level api change

Should have tested better before merging. Should probably remove the
whole debug print helper and use core functions directly now that
the core supports per-module debugging.

---

 modules/mohqueue/mohq_funcs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/mohqueue/mohq_funcs.c b/modules/mohqueue/mohq_funcs.c
index d3e7ee9..ae0fc51 100644
--- a/modules/mohqueue/mohq_funcs.c
+++ b/modules/mohqueue/mohq_funcs.c
@@ -2324,7 +2324,7 @@ void mohq_debug (mohq_lst *pmohq, char *pfmt, ...)
 * o reset log level
 **********/
 
-int nsys_log = get_debug_level ();
+int nsys_log = get_debug_level (LOG_MNAME, LOG_MNAME_LEN);
 int nmohq_log = (pmohq->mohq_flags & MOHQF_DBG) ? L_DBG : L_INFO;
 if (nmohq_log < L_DBG && nsys_log < L_DBG)
   { return; }




More information about the sr-dev mailing list