Skip to content
Snippets Groups Projects
Commit 17717b87 authored by Andreas Dilger's avatar Andreas Dilger
Browse files

Branch b1_6

Move misplaced warning message.
parent 1f7c18a1
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment