Display the recursion count in the lock_instance in the show locks

output.

Indirectly requested by:	peter
This commit is contained in:
John Baldwin 2002-04-10 01:25:11 +00:00
parent 9351347a17
commit 9522390c28

View File

@ -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++;
}