Module Name:    src
Committed By:   abs
Date:           Thu Nov  1 13:46:52 UTC 2012

Modified Files:
        src/sys/dev/ata: ata.c

Log Message:
Allow setting ATADEBUG_MASK to default value of atadebug_mask


To generate a diff of this commit:
cvs rdiff -u -r1.125 -r1.126 src/sys/dev/ata/ata.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/ata/ata.c
diff -u src/sys/dev/ata/ata.c:1.125 src/sys/dev/ata/ata.c:1.126
--- src/sys/dev/ata/ata.c:1.125	Sat Aug  4 21:21:09 2012
+++ src/sys/dev/ata/ata.c	Thu Nov  1 13:46:52 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: ata.c,v 1.125 2012/08/04 21:21:09 bouyer Exp $	*/
+/*	$NetBSD: ata.c,v 1.126 2012/11/01 13:46:52 abs Exp $	*/
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.  All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.125 2012/08/04 21:21:09 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.126 2012/11/01 13:46:52 abs Exp $");
 
 #include "opt_ata.h"
 
@@ -70,7 +70,10 @@ __KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.12
 #define DEBUG_DETACH 0x20
 #define	DEBUG_XFERS  0x40
 #ifdef ATADEBUG
-int atadebug_mask = 0;
+#ifndef ATADEBUG_MASK
+#define ATADEBUG_MASK 0
+#endif
+int atadebug_mask = ATADEBUG_MASK;
 #define ATADEBUG_PRINT(args, level) \
 	if (atadebug_mask & (level)) \
 		printf args

Reply via email to