From 9522390c28d2dcfa2cb15caf5600f6b3be77864c Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 10 Apr 2002 01:25:11 +0000 Subject: [PATCH] Display the recursion count in the lock_instance in the show locks output. Indirectly requested by: peter --- sys/kern/subr_witness.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index 03f3a2b2e2b4..75d8d557f619 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++; }