summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2002-07-13 20:01:13 +0000
committeroster <oster@NetBSD.org>2002-07-13 20:01:13 +0000
commit1beb201fc3f1c7f8d872656e301b49906fa8509c (patch)
treeff1f98bf211663071536094aaac21bb6c89afae4 /sys/dev/raidframe
parent28ce42a2bb764ba1bbee0092a6d2bde537867cfc (diff)
rf_ValidateDAG isn't something that we want to even consider
calling unless DEBUG is turned on.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_engine.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/raidframe/rf_engine.c b/sys/dev/raidframe/rf_engine.c
index a95cf7b6114..489c554f275 100644
--- a/sys/dev/raidframe/rf_engine.c
+++ b/sys/dev/raidframe/rf_engine.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_engine.c,v 1.12 2001/11/13 07:11:14 lukem Exp $ */
+/* $NetBSD: rf_engine.c,v 1.13 2002/07/13 20:01:13 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -55,7 +55,7 @@
****************************************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_engine.c,v 1.12 2001/11/13 07:11:14 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_engine.c,v 1.13 2002/07/13 20:01:13 oster Exp $");
#include "rf_threadstuff.h"
@@ -692,10 +692,12 @@ rf_DispatchDAG(
if (dag->tracerec) {
RF_ETIMER_START(dag->tracerec->timer);
}
+#if DEBUG
if (rf_engineDebug || rf_validateDAGDebug) {
if (rf_ValidateDAG(dag))
RF_PANIC();
}
+#endif
if (rf_engineDebug) {
printf("raid%d: Entering DispatchDAG\n", raidPtr->raidid);
}