From aad7597ce09ff406fd80fe49b995d3f6237aa446 Mon Sep 17 00:00:00 2001 From: Alfred Perlstein Date: Mon, 30 Apr 2001 01:01:52 +0000 Subject: [PATCH] When panic()'ing because of recursion on a non-recursive mutex, print out the location it was initially locked. Ok'd by: jake --- sys/kern/subr_witness.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index b6600e50e015..a3e5f1e5aa83 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -483,9 +483,9 @@ witness_lock(struct lock_object *lock, int flags, const char *file, int line) if ((lock->lo_flags & LO_RECURSED) != 0) { if ((lock->lo_flags & LO_RECURSABLE) == 0) panic( - "%s: recursed on non-recursive lock (%s) %s @ %s:%d", + "%s: recursed on non-recursive lock (%s) %s @ %s:%d first aquired @ %s:%d", __func__, class->lc_name, lock->lo_name, file, - line); + line, lock->lo_file, lock->lo_line); return; }