Change a KASSERT to a KASSERTMSG.

This commit is contained in:
matt 2012-10-29 05:25:19 +00:00
parent 57d76ca064
commit 2aa18ae8d4
1 changed files with 5 additions and 3 deletions

View File

@ -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 @@ e500_extintr(struct trapframe *tf)
* 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",