Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/scsipi Make wdcdebug_atapi_mask configurable like th...



details:   https://anonhg.NetBSD.org/src/rev/39a363070a98
branches:  trunk
changeset: 366533:39a363070a98
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Sep 01 07:19:19 2018 +0000

description:
Make wdcdebug_atapi_mask configurable like the other debug variables.

diffstat:

 sys/dev/scsipi/atapi_wdc.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r f66514494a4a -r 39a363070a98 sys/dev/scsipi/atapi_wdc.c
--- a/sys/dev/scsipi/atapi_wdc.c        Sat Sep 01 06:56:23 2018 +0000
+++ b/sys/dev/scsipi/atapi_wdc.c        Sat Sep 01 07:19:19 2018 +0000
@@ -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 @@
 #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



Home | Main Index | Thread Index | Old Index