Module Name:    src
Committed By:   christos
Date:           Sat Oct 12 16:42:27 UTC 2013

Modified Files:
        src/sys/kern: subr_lockdebug.c

Log Message:
provide a better printf for the panic message


To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/sys/kern/subr_lockdebug.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_lockdebug.c
diff -u src/sys/kern/subr_lockdebug.c:1.49 src/sys/kern/subr_lockdebug.c:1.50
--- src/sys/kern/subr_lockdebug.c:1.49	Sat Apr 27 04:12:35 2013
+++ src/sys/kern/subr_lockdebug.c	Sat Oct 12 12:42:27 2013
@@ -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 @@ lockdebug_abort1(lockdebug_t *ld, int s,
 	splx(s);
 	printf_nolog("\n");
 	if (dopanic)
-		panic("LOCKDEBUG");
+		panic("LOCKDEBUG: %s error: %s: %s", ld->ld_lockops->lo_name,
+		    func, msg);
 }
 
 #endif	/* LOCKDEBUG */

Reply via email to