summaryrefslogtreecommitdiff
path: root/kern/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/debug.h')
-rw-r--r--kern/debug.h6
1 files changed, 3 insertions, 3 deletions
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_ */