summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe/rf_engine.c
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2002-07-13 20:14:33 +0000
committeroster <oster@NetBSD.org>2002-07-13 20:14:33 +0000
commitbc8ead0c0a6ca4567ef3e3c079acf7e1e33e3b03 (patch)
treedd571f83d47abc8a0e563f82d20ab99a9befb023 /sys/dev/raidframe/rf_engine.c
parent1beb201fc3f1c7f8d872656e301b49906fa8509c (diff)
Most folks won't need the DAG printing and verification routines.
Introduce a #define to toggle them on/off. Disable calls to rf_PrintDAGList(). Saves ~6K on GENERIC+DEBUG kernel on i386.
Diffstat (limited to 'sys/dev/raidframe/rf_engine.c')
-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 489c554f275..74dce6a4e07 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.13 2002/07/13 20:01:13 oster Exp $ */
+/* $NetBSD: rf_engine.c,v 1.14 2002/07/13 20:14:34 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.13 2002/07/13 20:01:13 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_engine.c,v 1.14 2002/07/13 20:14:34 oster Exp $");
#include "rf_threadstuff.h"
@@ -693,11 +693,13 @@ rf_DispatchDAG(
RF_ETIMER_START(dag->tracerec->timer);
}
#if DEBUG
+#if RF_DEBUG_VALIDATE_DAG
if (rf_engineDebug || rf_validateDAGDebug) {
if (rf_ValidateDAG(dag))
RF_PANIC();
}
#endif
+#endif
if (rf_engineDebug) {
printf("raid%d: Entering DispatchDAG\n", raidPtr->raidid);
}