We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5934e7 commit 13c267fCopy full SHA for 13c267f
kernel/locking/lockdep.c
@@ -785,7 +785,7 @@ static void lockdep_print_held_locks(struct task_struct *p)
785
printk("no locks held by %s/%d.\n", p->comm, task_pid_nr(p));
786
else
787
printk("%d lock%s held by %s/%d:\n", depth,
788
- depth > 1 ? "s" : "", p->comm, task_pid_nr(p));
+ str_plural(depth), p->comm, task_pid_nr(p));
789
/*
790
* It's not reliable to print a task's held locks if it's not sleeping
791
* and it's not the current task.
0 commit comments