Module Name:    src
Committed By:   mlelstv
Date:           Sat Sep  1 07:19:19 UTC 2018

Modified Files:
        src/sys/dev/scsipi: atapi_wdc.c

Log Message:
Make wdcdebug_atapi_mask configurable like the other debug variables.


To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 src/sys/dev/scsipi/atapi_wdc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/scsipi/atapi_wdc.c
diff -u src/sys/dev/scsipi/atapi_wdc.c:1.129 src/sys/dev/scsipi/atapi_wdc.c:1.130
--- src/sys/dev/scsipi/atapi_wdc.c:1.129	Tue Oct 17 18:52:51 2017
+++ src/sys/dev/scsipi/atapi_wdc.c	Sat Sep  1 07:19:19 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: atapi_wdc.c,v 1.129 2017/10/17 18:52:51 jdolecek Exp $	*/
+/*	$NetBSD: atapi_wdc.c,v 1.130 2018/09/01 07:19:19 mlelstv Exp $	*/
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,v 1.129 2017/10/17 18:52:51 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,v 1.130 2018/09/01 07:19:19 mlelstv Exp $");
 
 #ifndef ATADEBUG
 #define ATADEBUG
@@ -67,7 +67,10 @@ __KERNEL_RCSID(0, "$NetBSD: atapi_wdc.c,
 #define DEBUG_FUNCS  0x08
 #define DEBUG_PROBE  0x10
 #ifdef ATADEBUG
-int wdcdebug_atapi_mask = 0;
+#ifndef ATADEBUG_ATAPI_MASK
+#define ATADEBUG_ATAPI_MASK 0x0
+#endif
+int wdcdebug_atapi_mask = ATADEBUG_ATAPI_MASK;
 #define ATADEBUG_PRINT(args, level) \
 	if (wdcdebug_atapi_mask & (level)) \
 		printf args

Reply via email to