Whamcloud - gitweb
b=19870
authorzhanghc <zhanghc>
Fri, 19 Jun 2009 04:29:18 +0000 (04:29 +0000)
committerzhanghc <zhanghc>
Fri, 19 Jun 2009 04:29:18 +0000 (04:29 +0000)
print correct pid/comm in libcfs_debug_dumpstack

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

lnet/libcfs/linux/linux-debug.c

index 7da6eda..c96eb4a 100644 (file)
@@ -272,7 +272,7 @@ static DUMP_TRACE_CONST struct stacktrace_ops print_trace_ops = {
 };
         /* 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,