Module Name:    src
Committed By:   maxv
Date:           Sat Mar 23 12:01:18 UTC 2019

Modified Files:
        src/sys/sys: queue.h

Log Message:
Enable QUEUEDEBUG under DIAGNOSTIC. It has never been documented and used,
but it's very useful and costs basically nothing. I even think we could
enable it by default in the kernel (if we added __predict_false's and
removed some crap).


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/sys/sys/queue.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/queue.h
diff -u src/sys/sys/queue.h:1.73 src/sys/sys/queue.h:1.74
--- src/sys/sys/queue.h:1.73	Fri Mar  8 08:12:39 2019
+++ src/sys/sys/queue.h	Sat Mar 23 12:01:18 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: queue.h,v 1.73 2019/03/08 08:12:39 msaitoh Exp $	*/
+/*	$NetBSD: queue.h,v 1.74 2019/03/23 12:01:18 maxv Exp $	*/
 
 /*
  * Copyright (c) 1991, 1993
@@ -91,6 +91,13 @@
 #include <sys/null.h>
 #endif
 
+#if defined(_KERNEL) && defined(_KERNEL_OPT)
+#include "opt_diagnostic.h"
+#ifdef DIAGNOSTIC
+#define QUEUEDEBUG	1
+#endif
+#endif
+
 #if defined(QUEUEDEBUG)
 # if defined(_KERNEL)
 #  define QUEUEDEBUG_ABORT(...) panic(__VA_ARGS__)

Reply via email to