mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 22:58:29 +00:00
torture: Replace torture_init_begin string with %s
This commit replaces a hard-coded "torture_init_begin" string in a pr_alert() format with "%s" and __func__. Signed-off-by: Stephen Zhang <stephenzhangzsd@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
a38fd87484
commit
4ac9de07b2
1 changed files with 3 additions and 3 deletions
|
@ -816,9 +816,9 @@ bool torture_init_begin(char *ttype, int v)
|
||||||
{
|
{
|
||||||
mutex_lock(&fullstop_mutex);
|
mutex_lock(&fullstop_mutex);
|
||||||
if (torture_type != NULL) {
|
if (torture_type != NULL) {
|
||||||
pr_alert("torture_init_begin: Refusing %s init: %s running.\n",
|
pr_alert("%s: Refusing %s init: %s running.\n",
|
||||||
ttype, torture_type);
|
__func__, ttype, torture_type);
|
||||||
pr_alert("torture_init_begin: One torture test at a time!\n");
|
pr_alert("%s: One torture test at a time!\n", __func__);
|
||||||
mutex_unlock(&fullstop_mutex);
|
mutex_unlock(&fullstop_mutex);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue