Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Change KASSERT to KASSERTMSG
details: https://anonhg.NetBSD.org/src/rev/0216eb45454f
branches: trunk
changeset: 781279:0216eb45454f
user: matt <matt%NetBSD.org@localhost>
date: Thu Aug 30 02:25:35 2012 +0000
description:
Change KASSERT to KASSERTMSG
diffstat:
sys/kern/kern_runq.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 2be424513c86 -r 0216eb45454f sys/kern/kern_runq.c
--- a/sys/kern/kern_runq.c Thu Aug 30 02:24:48 2012 +0000
+++ b/sys/kern/kern_runq.c Thu Aug 30 02:25:35 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_runq.c,v 1.34 2012/02/23 12:24:05 para Exp $ */
+/* $NetBSD: kern_runq.c,v 1.35 2012/08/30 02:25:35 matt Exp $ */
/*
* Copyright (c) 2007, 2008 Mindaugas Rasiukevicius <rmind at NetBSD org>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_runq.c,v 1.34 2012/02/23 12:24:05 para Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_runq.c,v 1.35 2012/08/30 02:25:35 matt Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -471,7 +471,9 @@
if (l == NULL) {
break;
}
- KASSERT(l->l_stat == LSRUN);
+ KASSERTMSG(l->l_stat == LSRUN, "%s l %p (%s) l_stat %d",
+ ci->ci_data.cpu_name,
+ l, (l->l_name ? l->l_name : l->l_proc->p_comm), l->l_stat);
/* Look for threads, whose are allowed to migrate */
if ((l->l_pflag & LP_BOUND) || lwp_cache_hot(l) ||
Home |
Main Index |
Thread Index |
Old Index