Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Improve the assert message.



details:   https://anonhg.NetBSD.org/src/rev/4c55c7ee3c08
branches:  trunk
changeset: 778941:4c55c7ee3c08
user:      rmind <rmind%NetBSD.org@localhost>
date:      Sat Apr 21 22:38:25 2012 +0000

description:
Improve the assert message.

diffstat:

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

diffs (28 lines):

diff -r cd3b33496bdb -r 4c55c7ee3c08 sys/kern/kern_synch.c
--- a/sys/kern/kern_synch.c     Sat Apr 21 22:22:48 2012 +0000
+++ b/sys/kern/kern_synch.c     Sat Apr 21 22:38:25 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_synch.c,v 1.300 2012/04/18 13:44:19 yamt Exp $    */
+/*     $NetBSD: kern_synch.c,v 1.301 2012/04/21 22:38:25 rmind Exp $   */
 
 /*-
  * Copyright (c) 1999, 2000, 2004, 2006, 2007, 2008, 2009
@@ -69,7 +69,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.300 2012/04/18 13:44:19 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_synch.c,v 1.301 2012/04/21 22:38:25 rmind Exp $");
 
 #include "opt_kstack.h"
 #include "opt_perfctrs.h"
@@ -684,7 +684,8 @@
                 * the context switch.
                 */
                KASSERTMSG(ci->ci_mtx_count == -1,
-                   "%s: cpu%u: ci_mtx_count (%d) != -1",
+                   "%s: cpu%u: ci_mtx_count (%d) != -1 "
+                   "(block with spin-mutex held)",
                     __func__, cpu_index(ci), ci->ci_mtx_count);
                oldspl = MUTEX_SPIN_OLDSPL(ci);
                ci->ci_mtx_count--;



Home | Main Index | Thread Index | Old Index