summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorAlfred M. Szmidt <ams@gnu.org>2004-12-01 06:17:18 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:15:26 +0200
commit2316d2aa6b9bbbe3f3ad7c604d0cc18000d47b81 (patch)
treeac3cf2cfd69a704897fdee184161e90b7a839d52 /kern
parent8f95dc8729437a6546a3777106f64d1c671d8ac3 (diff)
2004-11-22 Guillem Jover <guillem@hadrons.org>
* bogus/mach_assert.h: Change #ifdef DEBUG to #ifndef NDEBUG for assert et al. * kern/assert.h: Likewise. * kern/debug.h: Likewise. * util/debug.h: Likewise. * i386/i386/debug.h: Move dump_ss definition out of [DEBUG]. * linux/dev/glue/block.c (rdwr_full): Remove invalid assert.
Diffstat (limited to 'kern')
-rw-r--r--kern/assert.h2
-rw-r--r--kern/debug.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/kern/assert.h b/kern/assert.h
index 26214e3..228f91c 100644
--- a/kern/assert.h
+++ b/kern/assert.h
@@ -31,7 +31,7 @@
#include <kern/macro_help.h>
-#ifdef DEBUG
+#ifndef NDEBUG
#define MACH_ASSERT 1
#endif
diff --git a/kern/debug.h b/kern/debug.h
index 0c4ddf2..526ccc6 100644
--- a/kern/debug.h
+++ b/kern/debug.h
@@ -30,7 +30,7 @@
#include <kern/assert.h> /*XXX*/
-#ifdef DEBUG
+#ifndef NDEBUG
#define here() printf("@ %s:%d\n", __FILE__, __LINE__)
#define message(args) ({ printf("@ %s:%d: ", __FILE__, __LINE__); printf args; printf("\n"); })
@@ -46,7 +46,7 @@
__FILE__, __LINE__, (p), (id), (p->struct_id)); \
})
-#else /* !DEBUG */
+#else /* NDEBUG */
#define otsan()
@@ -55,6 +55,6 @@
#define struct_id_denit(p)
#define struct_id_verify(p,id)
-#endif /* !DEBUG */
+#endif /* NDEBUG */
#endif /* _mach_debug__debug_ */