Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/19a5b618a078
branches:  trunk
changeset: 780015:19a5b618a078
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Jul 07 08:05:48 2012 +0000

description:
Convert a KASSERT to a KASSERTMSG

diffstat:

 sys/arch/arm/pic/pic.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r bfd56a3cbc75 -r 19a5b618a078 sys/arch/arm/pic/pic.c
--- a/sys/arch/arm/pic/pic.c    Sat Jul 07 01:39:59 2012 +0000
+++ b/sys/arch/arm/pic/pic.c    Sat Jul 07 08:05:48 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pic.c,v 1.9 2012/07/04 13:34:24 skrll Exp $    */
+/*     $NetBSD: pic.c,v 1.10 2012/07/07 08:05:48 skrll Exp $   */
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -28,7 +28,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.9 2012/07/04 13:34:24 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.10 2012/07/07 08:05:48 skrll Exp $");
 
 #define _INTR_PRIVATE
 #include <sys/param.h>
@@ -159,7 +159,8 @@
 
                irq_mask = __BIT(irq);
 #if 1
-               KASSERT(pic->pic_sources[irq_base + irq] != NULL);
+               KASSERTMSG(pic->pic_sources[irq_base + irq] != NULL,
+                  "%s: irq_base %zu irq %d\n", __func__, irq_base, irq);
 #else
                if (pic->pic_sources[irq_base + irq] == NULL) {
                        aprint_error("stray interrupt? irq_base=%zu irq=%d\n",



Home | Main Index | Thread Index | Old Index