Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Convert a KASSERT to KASSERTMSG



details:   https://anonhg.NetBSD.org/src/rev/6e77e725132e
branches:  trunk
changeset: 338756:6e77e725132e
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jun 06 21:46:17 2015 +0000

description:
Convert a KASSERT to KASSERTMSG

diffstat:

 sys/arch/mips/mips/vm_machdep.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 4c8e1f2bdb58 -r 6e77e725132e sys/arch/mips/mips/vm_machdep.c
--- a/sys/arch/mips/mips/vm_machdep.c   Sat Jun 06 21:45:40 2015 +0000
+++ b/sys/arch/mips/mips/vm_machdep.c   Sat Jun 06 21:46:17 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.143 2014/04/23 20:57:15 skrll Exp $   */
+/*     $NetBSD: vm_machdep.c,v 1.144 2015/06/06 21:46:17 matt Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.143 2014/04/23 20:57:15 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.144 2015/06/06 21:46:17 matt Exp $");
 
 #include "opt_ddb.h"
 #include "opt_coredump.h"
@@ -144,7 +144,10 @@
 #ifdef _LP64
        KASSERT(pcb2->pcb_context.val[_L_SR] & MIPS_SR_KX);
 #endif
-       KASSERT(pcb2->pcb_context.val[_L_SR] & MIPS_SR_INT_IE);
+       KASSERTMSG(pcb2->pcb_context.val[_L_SR] & MIPS_SR_INT_IE,
+           "%d.%d %#"PRIxREGISTER,
+           l1->l_proc->p_pid, l1->l_lid, 
+           pcb2->pcb_context.val[_L_SR]);
 }
 
 /*



Home | Main Index | Thread Index | Old Index