Whamcloud - gitweb
b=19870
authorzhanghc <zhanghc>
Thu, 2 Jul 2009 01:07:38 +0000 (01:07 +0000)
committerzhanghc <zhanghc>
Thu, 2 Jul 2009 01:07:38 +0000 (01:07 +0000)
print correct pid/comm in libcfs_debug_dumpstack

i=sheng.yang@sun.com
i=nathan.rutman@sun.com

libcfs/libcfs/linux/linux-debug.c

index bdcd432..7bcb5d6 100644 (file)
@@ -263,7 +263,7 @@ void libcfs_debug_dumpstack(struct task_struct *tsk)
 #elif defined(HAVE_DUMP_TRACE)
         /* dump_stack() */
         /* show_trace() */
-       printk("Pid: %d, comm: %.20s\n", current->pid, current->comm);
+       printk("Pid: %d, comm: %.20s\n", tsk->pid, tsk->comm);
         /* show_trace_log_lvl() */
        printk("\nCall Trace:\n");
        dump_trace(tsk, NULL, NULL,