Skip to content

Commit

Permalink
workqueue: Use %s instead of function name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Zhang authored and Tejun Heo committed Jan 27, 2021
1 parent 7bf9c4a commit e9ad2eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -2964,8 +2964,8 @@ void drain_workqueue(struct workqueue_struct *wq)

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;
Expand Down

0 comments on commit e9ad2eb

Please sign in to comment.