syscall: log: add task id to log output
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user