From b2f275b46e575766c7b5dab22ba30a367a182c9e Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 6 Nov 2004 11:50:08 +0000 Subject: Hook the debug output up to a sysctl, so you can choose to enable at runtime. --- bsd-core/drmP.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'bsd-core/drmP.h') diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h index c5015100..00c84ef7 100644 --- a/bsd-core/drmP.h +++ b/bsd-core/drmP.h @@ -128,8 +128,6 @@ typedef struct drm_file drm_file_t; #define DRM_KERNEL_CONTEXT 0 /* Change drm_resctx if changed */ #define DRM_RESERVED_CONTEXTS 1 /* Change drm_resctx if changed */ -#define DRM_FLAG_DEBUG 0x01 - #define DRM_MEM_DMA 0 #define DRM_MEM_SAREA 1 #define DRM_MEM_DRIVER 2 @@ -414,7 +412,7 @@ for ( ret = 0 ; !ret && !(condition) ; ) { \ #define DRM_INFO(fmt, arg...) printf("info: [" DRM_NAME "] " fmt , ## arg) #define DRM_DEBUG(fmt, arg...) do { \ - if (drm_flags & DRM_FLAG_DEBUG) \ + if (drm_debug_flag) \ printf("[" DRM_NAME ":pid%d:%s] " fmt, DRM_CURRENTPID, \ __func__ , ## arg); \ } while (0) @@ -729,8 +727,7 @@ struct drm_device { drm_local_map_t *agp_buffer_map; }; -extern int drm_flags; - +extern int drm_debug_flag; /* Device setup support (drm_drv.c) */ #ifdef __FreeBSD__ -- cgit v1.2.3