diff options
author | jhb <jhb@FreeBSD.org> | 2002-04-10 01:25:11 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2002-04-10 01:25:11 +0000 |
commit | 78e19df6f611d5facf38b583e4680cc30cd9346c (patch) | |
tree | 371e58d13be63c42c2cce2853b3130c6157aa254 /sys/kern/subr_witness.c | |
parent | ad726578d67811ea21f9b77397e28dda861118f0 (diff) | |
download | FreeBSD-src-78e19df6f611d5facf38b583e4680cc30cd9346c.zip FreeBSD-src-78e19df6f611d5facf38b583e4680cc30cd9346c.tar.gz |
Display the recursion count in the lock_instance in the show locks
output.
Indirectly requested by: peter
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r-- | sys/kern/subr_witness.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index 03f3a2b..75d8d55 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -1301,7 +1301,8 @@ witness_list_locks(struct lock_list_entry **lock_list) lock->lo_class->lc_name, lock->lo_name); if (lock->lo_type != lock->lo_name) printf(" (%s)", lock->lo_type); - printf(" (%p) locked @ %s:%d\n", lock, + printf(" r = %d (%p) locked @ %s:%d\n", + instance->li_flags & LI_RECURSEMASK, lock, instance->li_file, instance->li_line); nheld++; } |