summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authoroster <oster@NetBSD.org>2002-09-14 18:37:28 +0000
committeroster <oster@NetBSD.org>2002-09-14 18:37:28 +0000
commit7266276fb2d64d53d5aa4c1caa5d8961dbc9cdb6 (patch)
tree35007037842e16c5d2d9c92a7c2f819065ecbaf9 /sys/dev/raidframe
parent4499412f1acafb26b1e17004c02c5311d3d63f5e (diff)
Add a local #define, and disable some debugging stuff.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_shutdown.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/dev/raidframe/rf_shutdown.c b/sys/dev/raidframe/rf_shutdown.c
index 43aab518892..6b3d21fefcf 100644
--- a/sys/dev/raidframe/rf_shutdown.c
+++ b/sys/dev/raidframe/rf_shutdown.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_shutdown.c,v 1.11 2002/07/14 03:20:12 oster Exp $ */
+/* $NetBSD: rf_shutdown.c,v 1.12 2002/09/14 18:37:28 oster Exp $ */
/*
* rf_shutdown.c
*/
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_shutdown.c,v 1.11 2002/07/14 03:20:12 oster Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_shutdown.c,v 1.12 2002/09/14 18:37:28 oster Exp $");
#include <dev/raidframe/raidframevar.h>
@@ -42,6 +42,11 @@ __KERNEL_RCSID(0, "$NetBSD: rf_shutdown.c,v 1.11 2002/07/14 03:20:12 oster Exp $
#include "rf_shutdown.h"
#include "rf_freelist.h"
+
+#ifndef RF_DEBUG_SHUTDOWN
+#define RF_DEBUG_SHUTDOWN 0
+#endif
+
static void
rf_FreeShutdownEnt(RF_ShutdownList_t * ent)
{
@@ -89,14 +94,17 @@ rf_ShutdownList(RF_ShutdownList_t ** list)
file = r->file;
line = r->line;
+#if RF_DEBUG_SHUTDOWN
if (rf_shutdownDebug) {
printf("call shutdown, created %s:%d\n", file, line);
}
+#endif
r->cleanup(r->arg);
-
+#if RF_DEBUG_SHUTDOWN
if (rf_shutdownDebug) {
printf("completed shutdown, created %s:%d\n", file, line);
}
+#endif
rf_FreeShutdownEnt(r);
}
*list = NULL;