Module Name: src Committed By: matt Date: Thu Aug 30 02:25:35 UTC 2012
Modified Files: src/sys/kern: kern_runq.c Log Message: Change KASSERT to KASSERTMSG To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/kern/kern_runq.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/kern_runq.c diff -u src/sys/kern/kern_runq.c:1.34 src/sys/kern/kern_runq.c:1.35 --- src/sys/kern/kern_runq.c:1.34 Thu Feb 23 12:24:05 2012 +++ src/sys/kern/kern_runq.c Thu Aug 30 02:25:35 2012 @@ -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 @@ sched_catchlwp(struct cpu_info *ci) 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) ||