torture: Include "Stopping" string to torture_kthread_stopping()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 4 Mar 2014 00:58:03 +0000 (16:58 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 14 May 2014 16:45:59 +0000 (09:45 -0700)
Currently, torture_kthread_stopping() prints only the name of the
kthread that is stopping, which can be unedifying.  This commit therefore
adds "Stopping" to make things more evident.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/torture.c

index acc9afc2f26e4444f2cfbde9670e7d43ff3bced4..e5af6be2594db1f5857734d8277810030520fe00 100644 (file)
@@ -674,8 +674,10 @@ EXPORT_SYMBOL_GPL(torture_must_stop_irq);
  */
 void torture_kthread_stopping(char *title)
 {
-       if (verbose)
-               VERBOSE_TOROUT_STRING(title);
+       char buf[128];
+
+       snprintf(buf, sizeof(buf), "Stopping %s", title);
+       VERBOSE_TOROUT_STRING(buf);
        while (!kthread_should_stop()) {
                torture_shutdown_absorb(title);
                schedule_timeout_uninterruptible(1);