From 17717b8742e2c16505296c310eefd531203d9311 Mon Sep 17 00:00:00 2001 From: adilger <adilger> Date: Wed, 12 Sep 2007 05:24:29 +0000 Subject: [PATCH] Branch b1_6 Move misplaced warning message. --- lnet/libcfs/linux/linux-debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnet/libcfs/linux/linux-debug.c b/lnet/libcfs/linux/linux-debug.c index ad487df0f8..6b4244c2ea 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 } -- GitLab