Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Unconditionally enable UATP_DEBUG.



details:   https://anonhg.NetBSD.org/src/rev/e6adcc036f4e
branches:  trunk
changeset: 744187:e6adcc036f4e
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Jan 26 22:19:54 2020 +0000

description:
Unconditionally enable UATP_DEBUG.

diffstat:

 sys/dev/usb/uatp.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 02ca91b49b31 -r e6adcc036f4e sys/dev/usb/uatp.c
--- a/sys/dev/usb/uatp.c        Sun Jan 26 22:19:39 2020 +0000
+++ b/sys/dev/usb/uatp.c        Sun Jan 26 22:19:54 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uatp.c,v 1.21 2020/01/26 22:19:39 riastradh Exp $      */
+/*     $NetBSD: uatp.c,v 1.22 2020/01/26 22:19:54 riastradh Exp $      */
 
 /*-
  * Copyright (c) 2011-2014 The NetBSD Foundation, Inc.
@@ -146,7 +146,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uatp.c,v 1.21 2020/01/26 22:19:39 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uatp.c,v 1.22 2020/01/26 22:19:54 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -201,6 +201,13 @@
 #define UATP_DEBUG_TRACK_DIST  (1 << 14)
 #define UATP_DEBUG_PALM                (1 << 15)
 
+/*
+ * Unconditionally enable the debug output so you don't have to
+ * recompile the kernel to diagnose it.  This is not a high-throughput
+ * NIC driver or anything that will be hurt by a few conditionals.
+ */
+#define        UATP_DEBUG      1
+
 #if UATP_DEBUG
 #  define DPRINTF(sc, flags, format) do {                              \
        if ((flags) & (sc)->sc_debug_flags) {                           \



Home | Main Index | Thread Index | Old Index