diff --git a/lnet/libcfs/linux/linux-debug.c b/lnet/libcfs/linux/linux-debug.c index ad487df0f80cf395edb42c017d4623962be18147..6b4244c2ea15d67548c938a62559175dbd17e62b 100644 --- a/lnet/libcfs/linux/linux-debug.c +++ b/lnet/libcfs/linux/linux-debug.c @@ -168,9 +168,10 @@ void libcfs_debug_dumpstack(struct task_struct *tsk) CWARN("showing stack for process %d\n", tsk->pid); show_task(tsk); #else - CWARN("can't show stack: kernel doesn't export show_task\n"); if ((tsk == NULL) || (tsk == current)) dump_stack(); + else + CWARN("can't show stack: kernel doesn't export show_task\n"); #endif }