Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Nuke more debugging stuff and cleanup a tad.
details: https://anonhg.NetBSD.org/src/rev/0f3689e05277
branches: trunk
changeset: 480308:0f3689e05277
user: oster <oster%NetBSD.org@localhost>
date: Sun Jan 09 03:39:13 2000 +0000
description:
Nuke more debugging stuff and cleanup a tad.
diffstat:
sys/dev/raidframe/rf_netbsdkintf.c | 21 ++++-----------------
1 files changed, 4 insertions(+), 17 deletions(-)
diffs (62 lines):
diff -r 2458865029fa -r 0f3689e05277 sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c Sun Jan 09 03:28:11 2000 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c Sun Jan 09 03:39:13 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.45 2000/01/09 02:56:13 oster Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.46 2000/01/09 03:39:13 oster Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -155,20 +155,9 @@
int rf_kdebug_level = 0;
#ifdef DEBUG
-#define db0_printf(a) printf a
-#define db_printf(a) if (rf_kdebug_level > 0) printf a
#define db1_printf(a) if (rf_kdebug_level > 0) printf a
-#define db2_printf(a) if (rf_kdebug_level > 1) printf a
-#define db3_printf(a) if (rf_kdebug_level > 2) printf a
-#define db4_printf(a) if (rf_kdebug_level > 3) printf a
-#define db5_printf(a) if (rf_kdebug_level > 4) printf a
#else /* DEBUG */
-#define db0_printf(a) printf a
#define db1_printf(a) { }
-#define db2_printf(a) { }
-#define db3_printf(a) { }
-#define db4_printf(a) { }
-#define db5_printf(a) { }
#endif /* DEBUG */
static RF_Raid_t **raidPtrs; /* global raid device descriptors */
@@ -187,12 +176,10 @@
RF_SectorCount_t numSect, caddr_t buf,
void (*cbFunc) (struct buf *), void *cbArg,
int logBytesPerSector, struct proc * b_proc);
+static int raidinit __P((dev_t, RF_Raid_t *, int));
void raidattach __P((int));
int raidsize __P((dev_t));
-
-static int raidinit __P((dev_t, RF_Raid_t *, int));
-
int raidopen __P((dev_t, int, int, struct proc *));
int raidclose __P((dev_t, int, int, struct proc *));
int raidioctl __P((dev_t, u_long, caddr_t, int, struct proc *));
@@ -734,7 +721,7 @@
sizeof(RF_Config_t));
if (retcode) {
RF_Free(k_cfg, sizeof(RF_Config_t));
- db3_printf(("rf_ioctl: retcode=%d copyin.1\n",
+ db1_printf(("rf_ioctl: retcode=%d copyin.1\n",
retcode));
return (retcode);
}
@@ -759,7 +746,7 @@
RF_Free(k_cfg, sizeof(RF_Config_t));
RF_Free(specific_buf,
k_cfg->layoutSpecificSize);
- db3_printf(("rf_ioctl: retcode=%d copyin.2\n",
+ db1_printf(("rf_ioctl: retcode=%d copyin.2\n",
retcode));
return (retcode);
}
Home |
Main Index |
Thread Index |
Old Index