summaryrefslogtreecommitdiff
path: root/sys/dev/pci/pciide.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/pci/pciide.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/pci/pciide.c')
-rw-r--r--sys/dev/pci/pciide.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c
index 66d15d49108..fd26474228c 100644
--- a/sys/dev/pci/pciide.c
+++ b/sys/dev/pci/pciide.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pciide.c,v 1.141 2003/10/09 18:57:00 grange Exp $ */
+/* $OpenBSD: pciide.c,v 1.142 2003/10/16 11:30:00 grange Exp $ */
/* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */
/*
@@ -80,7 +80,10 @@
#define DEBUG_PROBE 0x10
#ifdef WDCDEBUG
-int wdcdebug_pciide_mask = 0;
+#ifndef WDCDEBUG_PCIIDE_MASK
+#define WDCDEBUG_PCIIDE_MASK 0x00
+#endif
+int wdcdebug_pciide_mask = WDCDEBUG_PCIIDE_MASK;
#define WDCDEBUG_PRINT(args, level) do { \
if ((wdcdebug_pciide_mask & (level)) != 0) \
printf args; \