Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/ffs We shouldn't be defining DEBUG and DIAGNOSTIC on...



details:   https://anonhg.NetBSD.org/src/rev/dcdc6723939b
branches:  trunk
changeset: 493934:dcdc6723939b
user:      pk <pk%NetBSD.org@localhost>
date:      Tue Jun 27 16:46:54 2000 +0000

description:
We shouldn't be defining DEBUG and DIAGNOSTIC on our own; these may have
unwanted side-effects in the header files. For now, do the internal
#defines after including the headers.

diffstat:

 sys/ufs/ffs/ffs_softdep.c |  22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diffs (43 lines):

diff -r 6bc965581e78 -r dcdc6723939b sys/ufs/ffs/ffs_softdep.c
--- a/sys/ufs/ffs/ffs_softdep.c Tue Jun 27 16:16:43 2000 +0000
+++ b/sys/ufs/ffs/ffs_softdep.c Tue Jun 27 16:46:54 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_softdep.c,v 1.2 2000/06/22 16:13:41 fvdl Exp $     */
+/*     $NetBSD: ffs_softdep.c,v 1.3 2000/06/27 16:46:54 pk Exp $       */
 
 /*
  * Copyright 1998 Marshall Kirk McKusick. All Rights Reserved.
@@ -32,16 +32,6 @@
  * from: @(#)ffs_softdep.c 9.56 (McKusick) 1/17/00
  */
 
-/*
- * For now we want the safety net that the DIAGNOSTIC and DEBUG flags provide.
- */
-#ifndef DIAGNOSTIC
-#define DIAGNOSTIC
-#endif
-#ifndef DEBUG
-#define DEBUG
-#endif
-
 #include <sys/param.h>
 #include <sys/buf.h>
 #include <sys/callout.h>
@@ -64,6 +54,16 @@
 #include <ufs/ufs/ufs_bswap.h>
 
 /*
+ * For now we want the safety net that the DIAGNOSTIC and DEBUG flags provide.
+ */
+#ifndef DIAGNOSTIC
+#define DIAGNOSTIC
+#endif
+#ifndef DEBUG
+#define DEBUG
+#endif
+
+/*
  * These definitions need to be adapted to the system to which
  * this file is being ported.
  */



Home | Main Index | Thread Index | Old Index