summaryrefslogtreecommitdiffstats
path: root/kernel/torture.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-03-03 16:58:03 -0800
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-05-14 09:45:59 -0700
commit0d6821d5f70b7137974575758962bae61ed0fc63 (patch)
treee77e938d7964b773cd87307142e8f2d6b8f04568 /kernel/torture.c
parent589a8f59509dc4c68f9c1e2522c5b0b556009221 (diff)
torture: Include "Stopping" string to torture_kthread_stopping()
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>
Diffstat (limited to 'kernel/torture.c')
-rw-r--r--kernel/torture.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/torture.c b/kernel/torture.c
index acc9afc2f26..e5af6be2594 100644
--- a/kernel/torture.c
+++ b/kernel/torture.c
@@ -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);