Put the lock error info in the panicstr so ddb can get at it.
This commit is contained in:
parent
8f010f576c
commit
428ae67203
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: subr_lockdebug.c,v 1.52 2014/11/24 02:36:31 christos Exp $ */
|
||||
/* $NetBSD: subr_lockdebug.c,v 1.53 2015/04/15 14:41:17 riastradh Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -34,7 +34,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: subr_lockdebug.c,v 1.52 2014/11/24 02:36:31 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: subr_lockdebug.c,v 1.53 2015/04/15 14:41:17 riastradh Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
|
||||
|
@ -862,5 +862,6 @@ lockdebug_abort(volatile void *lock, lockops_t *ops, const char *func,
|
|||
printf_nolog("\n");
|
||||
}
|
||||
|
||||
panic("lock error");
|
||||
panic("lock error: %s: %s: %s: lock %p cpu %d lwp %p",
|
||||
ops->lo_name, func, msg, lock, cpu_index(curcpu()), curlwp);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue