Source-Changes-HG archive

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

[src/sommerfeld_i386mp_1]: src/sys/arch/i386/i386 Use KDASSERT instead of KAS...



details:   https://anonhg.NetBSD.org/src/rev/714ef72a88e4
branches:  sommerfeld_i386mp_1
changeset: 482372:714ef72a88e4
user:      enami <enami%NetBSD.org@localhost>
date:      Sun Feb 11 09:27:57 2001 +0000

description:
Use KDASSERT instead of KASSERT inside #ifdef DEBUG ... #endif.  Otherwise,
this won't be compiled if defined(DEBUG) && !defined(DIAGNOSTIC).

diffstat:

 sys/arch/i386/i386/lock_machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 74655d72c5e8 -r 714ef72a88e4 sys/arch/i386/i386/lock_machdep.c
--- a/sys/arch/i386/i386/lock_machdep.c Sun Feb 11 09:25:21 2001 +0000
+++ b/sys/arch/i386/i386/lock_machdep.c Sun Feb 11 09:27:57 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lock_machdep.c,v 1.1.2.7 2001/02/11 09:25:21 enami Exp $ */
+/* $NetBSD: lock_machdep.c,v 1.1.2.8 2001/02/11 09:27:57 enami Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -81,7 +81,7 @@
 #endif
        __cpu_simple_lock_t v = *lockp;
 
-       KASSERT((v == __SIMPLELOCK_LOCKED) || (v == __SIMPLELOCK_UNLOCKED));
+       KDASSERT((v == __SIMPLELOCK_LOCKED) || (v == __SIMPLELOCK_UNLOCKED));
 #if defined(DDB)
        wantlock[cpu] = lockp;
 #endif
@@ -119,7 +119,7 @@
 #ifdef DEBUG
        __cpu_simple_lock_t v = *lockp;
 
-       KASSERT((v == __SIMPLELOCK_LOCKED) || (v == __SIMPLELOCK_UNLOCKED));
+       KDASSERT((v == __SIMPLELOCK_LOCKED) || (v == __SIMPLELOCK_UNLOCKED));
 #endif
 
        if (i386_atomic_testset_i(lockp, __SIMPLELOCK_LOCKED) ==
@@ -135,7 +135,7 @@
 #ifdef DEBUG
        __cpu_simple_lock_t v = *lockp;
 
-       KASSERT((v == __SIMPLELOCK_LOCKED) || (v == __SIMPLELOCK_UNLOCKED));
+       KDASSERT((v == __SIMPLELOCK_LOCKED) || (v == __SIMPLELOCK_UNLOCKED));
 #endif
 
        *lockp = __SIMPLELOCK_UNLOCKED;



Home | Main Index | Thread Index | Old Index