From 193df2a53487bd1db9c13999c388dec5f24120dd Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Thu, 16 Oct 2003 11:30:01 +0000 Subject: Allow setting of wdcdebug*_mask variables via preprocessor defines. This makes creating debug kernels be much more easy. --- sys/dev/atapiscsi/atapiscsi.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/dev/atapiscsi/atapiscsi.c') 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; \ -- cgit v1.2.3