diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-10-16 11:30:01 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2003-10-16 11:30:01 +0000 |
commit | 193df2a53487bd1db9c13999c388dec5f24120dd (patch) | |
tree | 9f9e83ca456d7eafe1e585392a81ad0d8cf95ceb /sys/dev/atapiscsi | |
parent | eff67c4e62ce35c5058cbab273a8fd71834f85ff (diff) |
Allow setting of wdcdebug*_mask variables via preprocessor defines.
This makes creating debug kernels be much more easy.
Diffstat (limited to 'sys/dev/atapiscsi')
-rw-r--r-- | sys/dev/atapiscsi/atapiscsi.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/atapiscsi/atapiscsi.c b/sys/dev/atapiscsi/atapiscsi.c index 7542a5626f2..ae8ab9f5beb 100644 --- a/sys/dev/atapiscsi/atapiscsi.c +++ b/sys/dev/atapiscsi/atapiscsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atapiscsi.c,v 1.64 2003/09/28 21:01:43 grange Exp $ */ +/* $OpenBSD: atapiscsi.c,v 1.65 2003/10/16 11:30:00 grange Exp $ */ /* * This code is derived from code with the copyright below. @@ -91,7 +91,10 @@ enum atapi_drive_states { #define DEBUG_ERRORS 0x80 /* Debug error handling code */ #if defined(WDCDEBUG) -int wdcdebug_atapi_mask = 0; +#ifndef WDCDEBUG_ATAPI_MASK +#define WDCDEBUG_ATAPI_MASK 0x00 +#endif +int wdcdebug_atapi_mask = WDCDEBUG_ATAPI_MASK; #define WDCDEBUG_PRINT(args, level) do { \ if ((wdcdebug_atapi_mask & (level)) != 0) \ printf args; \ |