aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_lock.c
diff options
context:
space:
mode:
authorIvan Voras <ivoras@FreeBSD.org>2012-03-05 14:19:43 +0000
committerIvan Voras <ivoras@FreeBSD.org>2012-03-05 14:19:43 +0000
commit2573ea5f767ec5ecd6ec5a6d4cc5cc66d1ef9db8 (patch)
tree06c561cd2f9758eab8818e85e5f586d053577bbd /sys/kern/kern_lock.c
parent31452ff75ea91680132d10d4f03bfc06f8e0c01b (diff)
downloadsrc-2573ea5f767ec5ecd6ec5a6d4cc5cc66d1ef9db8.tar.gz
src-2573ea5f767ec5ecd6ec5a6d4cc5cc66d1ef9db8.zip
Print out process name and thread id in the debugging message.
This is useful because the message can end up in system logs in non-debugging operation. Reviewed by: attilio (earlier version)
Notes
Notes: svn path=/head/; revision=232547
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r--sys/kern/kern_lock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index 614beb204132..00f1b11fb4f3 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -1277,8 +1277,9 @@ lockmgr_printinfo(const struct lock *lk)
(uintmax_t)LK_SHARERS(lk->lk_lock));
else {
td = lockmgr_xholder(lk);
- printf("lock type %s: EXCL by thread %p (pid %d)\n",
- lk->lock_object.lo_name, td, td->td_proc->p_pid);
+ printf("lock type %s: EXCL by thread %p "
+ "(pid %d, %s, tid %d)\n", lk->lock_object.lo_name, td,
+ td->td_proc->p_pid, td->td_proc->p_comm, td->td_tid);
}
x = lk->lk_lock;