summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2007-04-30 18:42:35 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2007-04-30 18:42:35 +0000
commit3d994c53e7001fabb5f1248a57623facf78218fe (patch)
treef5c99fbde7add11a22f94fbc992322f5d549b1c8
parent4f35af841428f33d19254e4ea974c82e81082047 (diff)
Enable QUEUE_MACRO_DEBUG on DIAGNOSTIC kernels.
Input and okays from krw@, millert@, otto@, deraadt@, miod@.
-rw-r--r--sys/sys/queue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/queue.h b/sys/sys/queue.h
index 1cad23fdd17..38130e08152 100644
--- a/sys/sys/queue.h
+++ b/sys/sys/queue.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: queue.h,v 1.31 2005/11/25 08:06:25 otto Exp $ */
+/* $OpenBSD: queue.h,v 1.32 2007/04/30 18:42:34 pedro Exp $ */
/* $NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $ */
/*
@@ -82,7 +82,7 @@
* For details on the use of these macros, see the queue(3) manual page.
*/
-#ifdef QUEUE_MACRO_DEBUG
+#if defined(QUEUE_MACRO_DEBUG) || (defined(_KERNEL) && defined(DIAGNOSTIC))
#define _Q_INVALIDATE(a) (a) = ((void *)-1)
#else
#define _Q_INVALIDATE(a)