Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Put the lock error info in the panicstr so ddb can ...



details:   https://anonhg.NetBSD.org/src/rev/6e6662d468b3
branches:  trunk
changeset: 807611:6e6662d468b3
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Apr 15 14:41:17 2015 +0000

description:
Put the lock error info in the panicstr so ddb can get at it.

diffstat:

 sys/kern/subr_lockdebug.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r a049976638ee -r 6e6662d468b3 sys/kern/subr_lockdebug.c
--- a/sys/kern/subr_lockdebug.c Wed Apr 15 14:39:24 2015 +0000
+++ b/sys/kern/subr_lockdebug.c Wed Apr 15 14:41:17 2015 +0000
@@ -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 @@
                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);
 }



Home | Main Index | Thread Index | Old Index