Browse code

core: print modparam type id in log when parameter not found

Daniel-Constantin Mierla authored on 23/10/2012 14:17:24
Showing 1 changed files
... ...
@@ -147,8 +147,9 @@ int set_mod_param_regex(char* regex, char* name, modparam_t type, void* val)
147 147
 				}
148 148
 			}
149 149
 			else {
150
-				LOG(L_ERR, "set_mod_param_regex: parameter <%s> not found in"
151
-							" module <%s>\n", name, t->exports.name);
150
+				LOG(L_ERR, "set_mod_param_regex: parameter <%s>"
151
+							" of type <%d> not found in"
152
+							" module <%s>\n", name, type, t->exports.name);
152 153
 				regfree(&preg);
153 154
 				pkg_free(reg);
154 155
 				return -3;