summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_smsc.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-03-07 18:39:03 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-03-07 18:39:03 +0000
commit063defb1c68638789fc3466451766529c2c5f754 (patch)
tree9d50cc9fc419483bb1ee5c897adb48d483ca672f /sys/dev/usb/if_smsc.c
parentae7dfe87886f2abbc46f5b44b71e097b7e18d8b9 (diff)
Do not define per-driver DEBUG variable when USB_DEBUG is defined. It's
really impossible to debug the USB stack when any single device you plug in your machine starts to vomit its own poetry,
Diffstat (limited to 'sys/dev/usb/if_smsc.c')
-rw-r--r--sys/dev/usb/if_smsc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/dev/usb/if_smsc.c b/sys/dev/usb/if_smsc.c
index 30e8abec6a3..2467e3ec6f4 100644
--- a/sys/dev/usb/if_smsc.c
+++ b/sys/dev/usb/if_smsc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_smsc.c,v 1.10 2013/11/15 10:17:39 pirofti Exp $ */
+/* $OpenBSD: if_smsc.c,v 1.11 2014/03/07 18:39:02 mpi Exp $ */
/* $FreeBSD: src/sys/dev/usb/net/if_smsc.c,v 1.1 2012/08/15 04:03:55 gonzo Exp $ */
/*-
* Copyright (c) 2012
@@ -99,10 +99,6 @@
#include "if_smscreg.h"
-#ifdef USB_DEBUG
-static int smsc_debug = 0;
-#endif
-
/*
* Various supported device vendors/products.
*/
@@ -127,7 +123,8 @@ static const struct usb_devno smsc_devs[] = {
{ USB_VENDOR_SMC2, USB_PRODUCT_SMC2_SMSC9512_14_SAL10 }
};
-#ifdef USB_DEBUG
+#ifdef SMSC_DEBUG
+static int smsc_debug = 0;
#define smsc_dbg_printf(sc, fmt, args...) \
do { \
if (smsc_debug > 0) \