Author: ivoras
Date: Mon Mar  5 14:19:43 2012
New Revision: 232547
URL: http://svn.freebsd.org/changeset/base/232547

Log:
  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)

Modified:
  head/sys/kern/kern_lock.c

Modified: head/sys/kern/kern_lock.c
==============================================================================
--- head/sys/kern/kern_lock.c   Mon Mar  5 14:04:12 2012        (r232546)
+++ head/sys/kern/kern_lock.c   Mon Mar  5 14:19:43 2012        (r232547)
@@ -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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to