summaryrefslogtreecommitdiff
path: root/sys/dev/ic/wdc.c
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2003-10-16 11:30:01 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2003-10-16 11:30:01 +0000
commit193df2a53487bd1db9c13999c388dec5f24120dd (patch)
tree9f9e83ca456d7eafe1e585392a81ad0d8cf95ceb /sys/dev/ic/wdc.c
parenteff67c4e62ce35c5058cbab273a8fd71834f85ff (diff)
Allow setting of wdcdebug*_mask variables via preprocessor defines.
This makes creating debug kernels be much more easy.
Diffstat (limited to 'sys/dev/ic/wdc.c')
-rw-r--r--sys/dev/ic/wdc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c
index 2c65061059b..e1f7215ed02 100644
--- a/sys/dev/ic/wdc.c
+++ b/sys/dev/ic/wdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdc.c,v 1.64 2003/10/16 10:07:59 grange Exp $ */
+/* $OpenBSD: wdc.c,v 1.65 2003/10/16 11:30:00 grange Exp $ */
/* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */
@@ -117,7 +117,10 @@ void wdc_kill_pending(struct channel_softc *);
#define DEBUG_DETACH 0x80
#ifdef WDCDEBUG
-int wdcdebug_mask = 0;
+#ifndef WDCDEBUG_MASK
+#define WDCDEBUG_MASK 0x00
+#endif
+int wdcdebug_mask = WDCDEBUG_MASK;
int wdc_nxfer = 0;
#define WDCDEBUG_PRINT(args, level) do { \
if ((wdcdebug_mask & (level)) != 0) \