syscall: log: add task id to log output

This commit is contained in:
2026-02-26 20:54:14 +00:00
parent e4de3af00d
commit f9bf4c618a

View File

@@ -4,6 +4,6 @@
kern_status_t sys_kern_log(const char *s) kern_status_t sys_kern_log(const char *s)
{ {
struct task *task = current_task(); struct task *task = current_task();
printk("%s: %s", task->t_name, task->t_id, s); printk("%s[%d]: %s", task->t_name, task->t_id, s);
return KERN_OK; return KERN_OK;
} }