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 Add #ifdef DIAGNOSTIC / #endif



details:   https://anonhg.NetBSD.org/src/rev/e1bec10a0a96
branches:  trunk
changeset: 781331:e1bec10a0a96
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Sep 01 01:44:16 2012 +0000

description:
Add #ifdef DIAGNOSTIC / #endif

diffstat:

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

diffs (28 lines):

diff -r aa7557c31913 -r e1bec10a0a96 sys/arch/arm/pic/pic.c
--- a/sys/arch/arm/pic/pic.c    Sat Sep 01 01:13:51 2012 +0000
+++ b/sys/arch/arm/pic/pic.c    Sat Sep 01 01:44:16 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pic.c,v 1.13 2012/09/01 00:00:42 matt Exp $    */
+/*     $NetBSD: pic.c,v 1.14 2012/09/01 01:44:16 matt 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.13 2012/09/01 00:00:42 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pic.c,v 1.14 2012/09/01 01:44:16 matt Exp $");
 
 #define _INTR_PRIVATE
 #include <sys/param.h>
@@ -476,7 +476,9 @@
        KASSERT(pcpu->pcpu_evs != NULL);
 
 #define        PCPU_NAMELEN    32
+#ifdef DIAGNOSTIC
        const size_t namelen = strlen(pic->pic_name) + 4 + strlen(ci->ci_data.cpu_name);
+#endif
 
        KASSERT(namelen < PCPU_NAMELEN);
        pcpu->pcpu_name = kmem_alloc(PCPU_NAMELEN, KM_SLEEP);



Home | Main Index | Thread Index | Old Index