git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Multiuser, Capabilities and Access Controls (#54)
[lunaix-os.git]
/
lunaix-os
/
kernel
/
kprint
/
kprintf.c
diff --git
a/lunaix-os/kernel/kprint/kprintf.c
b/lunaix-os/kernel/kprint/kprintf.c
index 363abc687b5d770113e74fd98f848e529dbe8a7c..dc466287d11019888b77889669c6fe134e6a1a7e 100644
(file)
--- a/
lunaix-os/kernel/kprint/kprintf.c
+++ b/
lunaix-os/kernel/kprint/kprintf.c
@@
-99,7
+99,7
@@
kprintf_v(const char* component, const char* fmt, ...)
}
static void
}
static void
-__twimap_
kprintf_read
(struct twimap* map)
+__twimap_
read_kmsg
(struct twimap* map)
{
struct kp_records* __kprecs = twimap_data(map, struct kp_records*);
{
struct kp_records* __kprecs = twimap_data(map, struct kp_records*);
@@
-112,14
+112,14
@@
__twimap_kprintf_read(struct twimap* map)
{
time_t s = pos->time / 1000;
time_t ms = pos->time % 1000;
{
time_t s = pos->time / 1000;
time_t ms = pos->time % 1000;
- twimap_printf(map, "[%05d.%03d] %s
\n
", s, ms, pos->content);
+ twimap_printf(map, "[%05d.%03d] %s", s, ms, pos->content);
}
}
static void
kprintf_mapping_init()
{
}
}
static void
kprintf_mapping_init()
{
- twimap_e
ntry_simple(NULL, "kmsg", &kprecs, __twimap_kprintf_read
);
+ twimap_e
xport_value(NULL, kmsg, FSACL_ugR, &kprecs
);
}
EXPORT_TWIFS_PLUGIN(kprintf, kprintf_mapping_init);
}
EXPORT_TWIFS_PLUGIN(kprintf, kprintf_mapping_init);