kernel: reduce log message spam during boot
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user