Whamcloud - gitweb
Branch b1_6
authoradilger <adilger>
Wed, 12 Sep 2007 05:24:29 +0000 (05:24 +0000)
committeradilger <adilger>
Wed, 12 Sep 2007 05:24:29 +0000 (05:24 +0000)
Move misplaced warning message.

lnet/libcfs/linux/linux-debug.c

index ad487df..6b4244c 100644 (file)
@@ -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
 }