summaryrefslogtreecommitdiff
path: root/bsd-core/drm_sysctl.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-11-06 11:50:08 +0000
committerEric Anholt <anholt@freebsd.org>2004-11-06 11:50:08 +0000
commitb2f275b46e575766c7b5dab22ba30a367a182c9e (patch)
tree8447f1f94a6fac6e490850824ba20691fc4fbcc0 /bsd-core/drm_sysctl.c
parent7adee84064d55207dbf7893cc8cb579bfa1a7631 (diff)
Hook the debug output up to a sysctl, so you can choose to enable at
runtime.
Diffstat (limited to 'bsd-core/drm_sysctl.c')
-rw-r--r--bsd-core/drm_sysctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bsd-core/drm_sysctl.c b/bsd-core/drm_sysctl.c
index 64066bc2..09cba5b9 100644
--- a/bsd-core/drm_sysctl.c
+++ b/bsd-core/drm_sysctl.c
@@ -96,6 +96,10 @@ int drm_sysctl_init(drm_device_t *dev)
if (!oid)
return 1;
}
+ SYSCTL_ADD_INT(&info->ctx, SYSCTL_CHILDREN(top), OID_AUTO, "debug",
+ CTLFLAG_RW, &drm_debug_flag, sizeof(drm_debug_flag),
+ "Enable debugging output");
+
return 0;
}