Files

13 lines
319 B
C
Raw Permalink Normal View History

2026-02-19 19:21:50 +00:00
#include <kernel/printk.h>
#include <kernel/sched.h>
#include <kernel/task.h>
#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();
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;
}