Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ata Allow setting ATADEBUG_MASK to default value of ...



details:   https://anonhg.NetBSD.org/src/rev/5d5f944259ac
branches:  trunk
changeset: 782389:5d5f944259ac
user:      abs <abs%NetBSD.org@localhost>
date:      Thu Nov 01 13:46:52 2012 +0000

description:
Allow setting ATADEBUG_MASK to default value of atadebug_mask

diffstat:

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

diffs (30 lines):

diff -r f42896ed0f23 -r 5d5f944259ac sys/dev/ata/ata.c
--- a/sys/dev/ata/ata.c Thu Nov 01 13:43:23 2012 +0000
+++ b/sys/dev/ata/ata.c Thu Nov 01 13:46:52 2012 +0000
@@ -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 @@
 #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



Home | Main Index | Thread Index | Old Index