summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2012-11-02 05:26:33 +0000
committerglebius <glebius@FreeBSD.org>2012-11-02 05:26:33 +0000
commita6846515de10a7f9c8ab0ca90df23b49a6da4f14 (patch)
tree6fc6414021a7e7e37f71570d1a5fff3487e56996
parent5b01d738b37dbbf23678418be3cb724d7a699743 (diff)
downloadFreeBSD-src-a6846515de10a7f9c8ab0ca90df23b49a6da4f14.zip
FreeBSD-src-a6846515de10a7f9c8ab0ca90df23b49a6da4f14.tar.gz
- If DRM_DEBUG_DEFAULT_ON is defined, then initialize drm_debug_flagi to
all supported debugging bits. - If DRM_DEBUG_DEFAULT_ON isn't defined, then initialize drm_debug_flag to zero. DRM_DEBUG_DEFAULT_ON is defined when module is build with -DDEBUG_DRM or if kernel config has 'options DEBUG_DRM'. Reviewed by: kib
-rw-r--r--sys/dev/drm2/drm_drv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/drm2/drm_drv.c b/sys/dev/drm2/drm_drv.c
index 33e50ea..483aff5 100644
--- a/sys/dev/drm2/drm_drv.c
+++ b/sys/dev/drm2/drm_drv.c
@@ -44,9 +44,10 @@ __FBSDID("$FreeBSD$");
#include <dev/drm2/drm_mode.h>
#ifdef DRM_DEBUG_DEFAULT_ON
-int drm_debug_flag = 1;
+int drm_debug_flag = (DRM_DEBUGBITS_DEBUG | DRM_DEBUGBITS_KMS |
+ DRM_DEBUGBITS_FAILED_IOCTL);
#else
-int drm_debug_flag = 2;
+int drm_debug_flag = 0;
#endif
int drm_notyet_flag = 0;
OpenPOWER on IntegriCloud