added a lot of debugging functions that should help fixing bugs

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2099 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2002-11-28 02:25:04 +00:00
parent 363999a1eb
commit 7991b1a031
9 changed files with 89 additions and 24 deletions
+7 -2
View File
@@ -946,13 +946,15 @@ module_init(kernel_args *ka, module_info **sys_module_headers)
status_t
get_module(const char *path, module_info **vec)
{
module *m = (module *)hash_get(modules_list, path, strlen(path));
module *m;
loaded_module *lm;
int res = B_NO_ERROR;
*vec = NULL;
dprintf("*** get_module: %s\n", path);
m = (module *)hash_get(modules_list, path, strlen(path));
/* If m == NULL we didn't find any record of the module
* in our hash. We'll now call serach_mdoules which will do
* scan of the possible directories that may contain it.
@@ -1012,8 +1014,11 @@ get_module(const char *path, module_info **vec)
status_t
put_module(const char *path)
{
module *m = (module *)hash_get(modules_list, path, strlen(path));
module *m;
dprintf("*** put_module: path %s\n", path);
m = (module *)hash_get(modules_list, path, strlen(path));
if (!m) {
dprintf("We don't seem to have a reference to module %s\n", path);
return EINVAL;