summaryrefslogtreecommitdiff
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorStephen Zhang <stephenzhangzsd@gmail.com>2021-01-23 16:04:00 +0800
committerTejun Heo <tj@kernel.org>2021-01-27 09:42:48 -0500
commite9ad2eb3d9ae05471c9b9fafcc0a31d8f565ca5b (patch)
treed4522e96572bf25cf8363ede0e2d7aaf790af238 /kernel/workqueue.c
parent7bf9c4a88e3e33cf593b2452776361c6db0f28b0 (diff)
downloadlwn-e9ad2eb3d9ae05471c9b9fafcc0a31d8f565ca5b.tar.gz
lwn-e9ad2eb3d9ae05471c9b9fafcc0a31d8f565ca5b.zip
workqueue: Use %s instead of function name
It is better to replace the function name with %s, in case the function name changes. Signed-off-by: Stephen Zhang <stephenzhangzsd@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r--kernel/workqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 9880b6c0e272..8b1b6160eab6 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -2964,8 +2964,8 @@ reflush:
if (++flush_cnt == 10 ||
(flush_cnt % 100 == 0 && flush_cnt <= 1000))
- pr_warn("workqueue %s: drain_workqueue() isn't complete after %u tries\n",
- wq->name, flush_cnt);
+ pr_warn("workqueue %s: %s() isn't complete after %u tries\n",
+ wq->name, __func__, flush_cnt);
mutex_unlock(&wq->mutex);
goto reflush;