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

Daniel-Constantin Mierla miconda at gmail.com
Tue Oct 23 16:50:51 CEST 2012


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

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

---

 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