Explorar o código

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

Daniel-Constantin Mierla %!s(int64=13) %!d(string=hai) anos
pai
achega
22dd8d6524
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      modparam.c

+ 3 - 2
modparam.c

@@ -147,8 +147,9 @@ int set_mod_param_regex(char* regex, char* name, modparam_t type, void* val)
 				}
 				}
 			}
 			}
 			else {
 			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);
 				regfree(&preg);
 				pkg_free(reg);
 				pkg_free(reg);
 				return -3;
 				return -3;