2026-02-19 19:21:50 +00:00
|
|
|
#include <kernel/printk.h>
|
|
|
|
|
#include <kernel/sched.h>
|
2026-03-12 20:29:36 +00:00
|
|
|
#include <kernel/task.h>
|
2026-03-18 21:07:43 +00:00
|
|
|
#include <kernel/thread.h>
|
2026-02-19 19:21:50 +00:00
|
|
|
|
|
|
|
|
kern_status_t sys_kern_log(const char *s)
|
|
|
|
|
{
|
|
|
|
|
struct task *task = current_task();
|
2026-03-18 21:07:43 +00:00
|
|
|
struct thread *thread = current_thread();
|
|
|
|
|
printk("%s[%d.%d]: %s", task->t_name, task->t_id, thread->tr_id, s);
|
2026-02-19 19:21:50 +00:00
|
|
|
return KERN_OK;
|
|
|
|
|
}
|