mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
When panic()'ing because of recursion on a non-recursive mutex, print
out the location it was initially locked. Ok'd by: jake
This commit is contained in:
parent
e6af1080c2
commit
aad7597ce0
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue