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 KASSERT -> KASSERTMSG



details:   https://anonhg.NetBSD.org/src/rev/6adcd3409bc3
branches:  trunk
changeset: 941603:6adcd3409bc3
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Oct 25 08:29:30 2020 +0000

description:
KASSERT -> KASSERTMSG

diffstat:

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

diffs (28 lines):

diff -r f7f2dad2945e -r 6adcd3409bc3 sys/arch/arm/pic/pic.c
--- a/sys/arch/arm/pic/pic.c    Sun Oct 25 08:18:39 2020 +0000
+++ b/sys/arch/arm/pic/pic.c    Sun Oct 25 08:29:30 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pic.c,v 1.57 2020/07/27 16:26:51 skrll Exp $   */
+/*     $NetBSD: pic.c,v 1.58 2020/10/25 08:29:30 skrll Exp $   */
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -33,7 +33,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.57 2020/07/27 16:26:51 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.58 2020/10/25 08:29:30 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -215,7 +215,8 @@
                        sent_p = true;
                }
        }
-       KASSERT(cold || sent_p || ncpu <= 1);
+       KASSERTMSG(cold || sent_p || ncpu <= 1, "cold %d sent_p %d ncpu %d",
+           cold, sent_p, ncpu);
 }
 #endif /* MULTIPROCESSOR */
 



Home | Main Index | Thread Index | Old Index