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>
This commit is contained in:
Stephen Zhang 2021-01-23 16:04:00 +08:00 committed by Tejun Heo
parent 7bf9c4a88e
commit e9ad2eb3d9

View File

@ -2964,8 +2964,8 @@ reflush:
if (++flush_cnt == 10 || if (++flush_cnt == 10 ||
(flush_cnt % 100 == 0 && flush_cnt <= 1000)) (flush_cnt % 100 == 0 && flush_cnt <= 1000))
pr_warn("workqueue %s: drain_workqueue() isn't complete after %u tries\n", pr_warn("workqueue %s: %s() isn't complete after %u tries\n",
wq->name, flush_cnt); wq->name, __func__, flush_cnt);
mutex_unlock(&wq->mutex); mutex_unlock(&wq->mutex);
goto reflush; goto reflush;