From 2316d2aa6b9bbbe3f3ad7c604d0cc18000d47b81 Mon Sep 17 00:00:00 2001 From: "Alfred M. Szmidt" Date: Wed, 1 Dec 2004 06:17:18 +0000 Subject: 2004-11-22 Guillem Jover * 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. --- kern/debug.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kern/debug.h') diff --git a/kern/debug.h b/kern/debug.h index 0c4ddf27..526ccc68 100644 --- a/kern/debug.h +++ b/kern/debug.h @@ -30,7 +30,7 @@ #include /*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_ */ -- cgit v1.2.3