allow specifiying access mode when creating twifs file node
[lunaix-os.git] / lunaix-os / kernel / kprint / kprintf.c
index 376df360e4d19d25c492c09af3ae690b0af81b11..dc466287d11019888b77889669c6fe134e6a1a7e 100644 (file)
@@ -99,7 +99,7 @@ kprintf_v(const char* component, const char* fmt, ...)
 }
 
 static void
-__twimap_kprintf_read(struct twimap* map)
+__twimap_read_kmsg(struct twimap* map)
 {
     struct kp_records* __kprecs = twimap_data(map, struct kp_records*);
 
@@ -119,7 +119,7 @@ __twimap_kprintf_read(struct twimap* map)
 static void
 kprintf_mapping_init()
 {
-    twimap_entry_simple(NULL, "kmsg", &kprecs, __twimap_kprintf_read);
+    twimap_export_value(NULL, kmsg, FSACL_ugR, &kprecs);
 }
 EXPORT_TWIFS_PLUGIN(kprintf, kprintf_mapping_init);