Commit 0a27fff3 authored by Stephen Zhang's avatar Stephen Zhang Committed by Paul E. McKenney
Browse files

rcutorture: Replace rcu_torture_stall string with %s



This commit replaces a hard-coded "rcu_torture_stall" string in a
pr_alert() format with "%s" and __func__.

Signed-off-by: default avatarStephen Zhang <stephenzhangzsd@gmail.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 4ac9de07
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1971,8 +1971,8 @@ static int rcu_torture_stall(void *args)
			local_irq_disable();
		else if (!stall_cpu_block)
			preempt_disable();
		pr_alert("rcu_torture_stall start on CPU %d.\n",
			 raw_smp_processor_id());
		pr_alert("%s start on CPU %d.\n",
			  __func__, raw_smp_processor_id());
		while (ULONG_CMP_LT((unsigned long)ktime_get_seconds(),
				    stop_at))
			if (stall_cpu_block)
@@ -1983,7 +1983,7 @@ static int rcu_torture_stall(void *args)
			preempt_enable();
		cur_ops->readunlock(idx);
	}
	pr_alert("rcu_torture_stall end.\n");
	pr_alert("%s end.\n", __func__);
	torture_shutdown_absorb("rcu_torture_stall");
	while (!kthread_should_stop())
		schedule_timeout_interruptible(10 * HZ);