summaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorStephen Zhang <stephenzhangzsd@gmail.com>2021-01-23 09:04:00 +0100
committerTejun Heo <tj@kernel.org>2021-01-27 15:42:48 +0100
commite9ad2eb3d9ae05471c9b9fafcc0a31d8f565ca5b (patch)
treed4522e96572bf25cf8363ede0e2d7aaf790af238 /kernel/workqueue.c
parentworkqueue: tracing the name of the workqueue instead of it's address (diff)
downloadlinux-e9ad2eb3d9ae05471c9b9fafcc0a31d8f565ca5b.tar.xz
linux-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;