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/dfa59d9f8e9e
branches: trunk
changeset: 968725:dfa59d9f8e9e
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 e8f222c06cfe -r dfa59d9f8e9e 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