Don't always define DWC2_DEBUG

This commit is contained in:
skrll 2013-11-01 15:03:39 +00:00
parent 41d476cc49
commit 735b653763
2 changed files with 3 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dwc2.c,v 1.15 2013/10/22 09:42:20 skrll Exp $ */
/* $NetBSD: dwc2.c,v 1.16 2013/11/01 15:03:39 skrll Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.15 2013/10/22 09:42:20 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.16 2013/11/01 15:03:39 skrll Exp $");
#include "opt_usb.h"
@ -66,7 +66,6 @@ __KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.15 2013/10/22 09:42:20 skrll Exp $");
#endif
#define DWC2_EVCNT_INCR(a) DWC2_EVCNT_ADD((a), 1)
#define DWC2_DEBUG
#ifdef DWC2_DEBUG
#define DPRINTFN(n,fmt,...) do { \
if (dwc2debug >= (n)) { \

View File

@ -1,4 +1,4 @@
/* $NetBSD: dwc2.h,v 1.1 2013/09/05 20:25:27 skrll Exp $ */
/* $NetBSD: dwc2.h,v 1.2 2013/11/01 15:03:39 skrll Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@ -61,7 +61,6 @@ typedef int irqreturn_t;
#define DWC2_WRITE_4(hsotg, reg, data) \
bus_space_write_4((hsotg)->hsotg_sc->sc_iot, (hsotg)->hsotg_sc->sc_ioh, (reg), (data));
#define DWC2_DEBUG
#ifdef DWC2_DEBUG
extern int dwc2debug;
#define WARN_ON(x) KASSERT(!(x))