Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/booke Change a KASSERT to a KASSERTMSG.



details:   https://anonhg.NetBSD.org/src/rev/6b14024bcc71
branches:  trunk
changeset: 782337:6b14024bcc71
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Oct 29 05:25:19 2012 +0000

description:
Change a KASSERT to a KASSERTMSG.

diffstat:

 sys/arch/powerpc/booke/e500_intr.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r a95ac16eea87 -r 6b14024bcc71 sys/arch/powerpc/booke/e500_intr.c
--- a/sys/arch/powerpc/booke/e500_intr.c        Mon Oct 29 05:23:44 2012 +0000
+++ b/sys/arch/powerpc/booke/e500_intr.c        Mon Oct 29 05:25:19 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: e500_intr.c,v 1.21 2012/08/01 21:30:22 matt Exp $      */
+/*     $NetBSD: e500_intr.c,v 1.22 2012/10/29 05:25:19 matt Exp $      */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -39,7 +39,7 @@
 #define __INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: e500_intr.c,v 1.21 2012/08/01 21:30:22 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: e500_intr.c,v 1.22 2012/10/29 05:25:19 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -913,7 +913,9 @@
                         * Timer interrupts get their argument overriden with
                         * the pointer to the trapframe.
                         */
-                       KASSERT(is->is_ipl == ipl);
+                       KASSERTMSG(is->is_ipl == ipl,
+                           "iack %#x: is %p: irq %d ipl %d != iack ipl %d",
+                           iack, is, irq, is->is_ipl, ipl);
                        void *arg = (is->is_ist == IST_TIMER ? tf : is->is_arg);
                        if (is->is_ipl <= old_ipl)
                                panic("%s(%p): %s (%u): is->is_ipl (%u) <= old_ipl (%u)\n",



Home | Main Index | Thread Index | Old Index