mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 06:07:31 -04:00
Properly turn off debugging
LART applied (gently) by: sam
This commit is contained in:
parent
e238d4ead1
commit
afe0ec0027
1 changed files with 3 additions and 1 deletions
|
|
@ -103,6 +103,8 @@ __FBSDID("$FreeBSD$");
|
|||
#include <dev/wpi/if_wpireg.h>
|
||||
#include <dev/wpi/if_wpivar.h>
|
||||
|
||||
#define WPI_DEBUG
|
||||
|
||||
#ifdef WPI_DEBUG
|
||||
#define DPRINTF(x) do { if (wpi_debug != 0) printf x; } while (0)
|
||||
#define DPRINTFN(n, x) do { if (wpi_debug & n) printf x; } while (0)
|
||||
|
|
@ -124,7 +126,7 @@ enum {
|
|||
WPI_DEBUG_ANY = 0xffffffff
|
||||
};
|
||||
|
||||
static int wpi_debug = 1;
|
||||
static int wpi_debug = 0;
|
||||
SYSCTL_INT(_debug, OID_AUTO, wpi, CTLFLAG_RW, &wpi_debug, 0, "wpi debug level");
|
||||
TUNABLE_INT("debug.wpi", &wpi_debug);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue