From: Thomas Gleixner Print the information of the current task rather than some random picked task information. Signed-off-by: Thomas Gleixner Signed-off-by: Ingo Molnar Signed-off-by: Andrew Morton --- kernel/rtmutex.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN kernel/rtmutex.c~rtmutex-debug-printk-correct-task-information kernel/rtmutex.c --- devel/kernel/rtmutex.c~rtmutex-debug-printk-correct-task-information 2006-05-11 15:19:30.000000000 -0700 +++ devel-akpm/kernel/rtmutex.c 2006-05-11 15:19:30.000000000 -0700 @@ -183,7 +183,7 @@ static int rt_mutex_adjust_prio_chain(ta prev_max = max_lock_depth; printk(KERN_WARNING "Maximum lock depth %d reached " "task: %s (%d)\n", max_lock_depth, - task->comm, task->pid); + current->comm, current->pid); } put_task_struct(task); _