Source-Changes-HG archive

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

[src/trunk]: src/sys/kern provide a better printf for the panic message



details:   https://anonhg.NetBSD.org/src/rev/166b0fe4e54a
branches:  trunk
changeset: 790452:166b0fe4e54a
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 12 16:42:27 2013 +0000

description:
provide a better printf for the panic message

diffstat:

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

diffs (28 lines):

diff -r 9c5a39b1429b -r 166b0fe4e54a sys/kern/subr_lockdebug.c
--- a/sys/kern/subr_lockdebug.c Sat Oct 12 15:30:37 2013 +0000
+++ b/sys/kern/subr_lockdebug.c Sat Oct 12 16:42:27 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_lockdebug.c,v 1.49 2013/04/27 08:12:35 mlelstv Exp $      */
+/*     $NetBSD: subr_lockdebug.c,v 1.50 2013/10/12 16:42:27 christos 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.49 2013/04/27 08:12:35 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_lockdebug.c,v 1.50 2013/10/12 16:42:27 christos Exp $");
 
 #include "opt_ddb.h"
 
@@ -780,7 +780,8 @@
        splx(s);
        printf_nolog("\n");
        if (dopanic)
-               panic("LOCKDEBUG");
+               panic("LOCKDEBUG: %s error: %s: %s", ld->ld_lockops->lo_name,
+                   func, msg);
 }
 
 #endif /* LOCKDEBUG */



Home | Main Index | Thread Index | Old Index