[sr-dev] git:3.3: core: print modparam type id in log when parameter not found

Daniel-Constantin Mierla miconda at gmail.com
Tue Dec 18 16:04:23 CET 2012


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue Oct 23 16:17:24 2012 +0200

core: print modparam type id in log when parameter not found
(cherry picked from commit 22dd8d6524a95b8bf0246adca99f0049c16fb76f)

---

 modparam.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modparam.c b/modparam.c
index 8661b90..01b91ce 100644
--- a/modparam.c
+++ b/modparam.c
@@ -147,8 +147,9 @@ int set_mod_param_regex(char* regex, char* name, modparam_t type, void* val)
 				}
 			}
 			else {
-				LOG(L_ERR, "set_mod_param_regex: parameter <%s> not found in"
-							" module <%s>\n", name, t->exports.name);
+				LOG(L_ERR, "set_mod_param_regex: parameter <%s>"
+							" of type <%d> not found in"
+							" module <%s>\n", name, type, t->exports.name);
 				regfree(&preg);
 				pkg_free(reg);
 				return -3;




More information about the sr-dev mailing list