summaryrefslogtreecommitdiff
path: root/sys/kern/subr_rman.c
diff options
context:
space:
mode:
authorMitsuru IWASAKI <iwasaki@FreeBSD.org>2002-09-05 11:45:02 +0000
committerMitsuru IWASAKI <iwasaki@FreeBSD.org>2002-09-05 11:45:02 +0000
commit2894f9d0a7aec23bf00d0eabccbc5b5bcdd2b337 (patch)
tree018f9fa8bae11549c386505e687a23b3d56fdcfd /sys/kern/subr_rman.c
parent32c6c4780a515d3ccf966ed2d5ae5123d62eee16 (diff)
Notes
Diffstat (limited to 'sys/kern/subr_rman.c')
-rw-r--r--sys/kern/subr_rman.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/kern/subr_rman.c b/sys/kern/subr_rman.c
index 7c5502edbfcb..858434b2f89c 100644
--- a/sys/kern/subr_rman.c
+++ b/sys/kern/subr_rman.c
@@ -66,12 +66,14 @@
#include <sys/bus.h> /* XXX debugging */
#include <machine/bus.h>
#include <sys/rman.h>
+#include <sys/sysctl.h>
-#ifdef RMAN_DEBUG
-#define DPRINTF(params) printf##params
-#else
-#define DPRINTF(params)
-#endif
+int rman_debug = 0;
+TUNABLE_INT("debug.rman_debug", &rman_debug);
+SYSCTL_INT(_debug, OID_AUTO, rman_debug, CTLFLAG_RW,
+ &rman_debug, 0, "rman debug");
+
+#define DPRINTF(params) if (rman_debug) printf params
static MALLOC_DEFINE(M_RMAN, "rman", "Resource manager");