kernel: reduce log message spam during boot

This commit is contained in:
2023-04-09 17:14:19 +01:00
parent eb998860a5
commit b1b16ba19c
8 changed files with 16 additions and 30 deletions

View File

@@ -1,5 +1,4 @@
#include <socks/object.h>
#include <socks/printk.h>
static object_namespace_t *global_ns;
@@ -42,7 +41,6 @@ void init_global_namespace(void)
{
object_type_register(&ns_type);
global_ns = object_namespace_create();
printk("obj: initialised global namespace");
}
object_namespace_t *global_namespace(void)
@@ -115,7 +113,7 @@ kern_status_t object_publish(object_namespace_t *ns, const char *path, object_t
if (!rpath) {
return KERN_NO_MEMORY;
}
memcpy(rpath, path, path_len);
cleanup_object_path(rpath, path_len, &parts);
@@ -136,7 +134,7 @@ kern_status_t object_publish(object_namespace_t *ns, const char *path, object_t
kfree(rpath);
return KERN_NO_MEMORY;
}
status = set_add_object(cur, next);
}
@@ -152,7 +150,7 @@ kern_status_t object_publish(object_namespace_t *ns, const char *path, object_t
}
kfree(rpath);
return set_add_object(cur, obj);
}