Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe Add a local #define, and disable some debu...



details:   https://anonhg.NetBSD.org/src/rev/789a3a58ab7b
branches:  trunk
changeset: 536395:789a3a58ab7b
user:      oster <oster%NetBSD.org@localhost>
date:      Sat Sep 14 18:37:28 2002 +0000

description:
Add a local #define, and disable some debugging stuff.

diffstat:

 sys/dev/raidframe/rf_shutdown.c |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (49 lines):

diff -r b0a84098a962 -r 789a3a58ab7b sys/dev/raidframe/rf_shutdown.c
--- a/sys/dev/raidframe/rf_shutdown.c   Sat Sep 14 18:17:52 2002 +0000
+++ b/sys/dev/raidframe/rf_shutdown.c   Sat Sep 14 18:37:28 2002 +0000
@@ -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 @@
 #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 @@
                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;



Home | Main Index | Thread Index | Old Index