From fa50e2b5132b84353ae964a39c3b10ea270d15e8 Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Fri, 15 Oct 2004 02:59:35 +0000 Subject: Switch linux-core over to 2.6 parameter model to enable debug use drm_debug=1 --- linux-core/drmP.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'linux-core/drmP.h') diff --git a/linux-core/drmP.h b/linux-core/drmP.h index 8af9f359..49cd9049 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -188,7 +188,7 @@ #if DRM_DEBUG_CODE #define DRM_DEBUG(fmt, arg...) \ do { \ - if ( drm_flags & DRM_FLAG_DEBUG ) \ + if ( drm_debug ) \ printk(KERN_DEBUG \ "[" DRM_NAME ":%s] " fmt , \ __FUNCTION__ , ##arg); \ @@ -726,8 +726,6 @@ static inline int drm_core_has_MTRR(struct drm_device *dev) /*@{*/ /* Misc. support (drm_init.h) */ -extern int drm_flags; -extern void drm_parse_options(char *s); extern int drm_cpu_valid(void); /* Driver support (drm_drv.h) */ @@ -919,6 +917,7 @@ extern int drm_get_dev(struct pci_dev *pdev, const struct pci_device_id *ent, extern int drm_put_dev(drm_device_t * dev); extern int drm_get_head(drm_device_t * dev, drm_head_t *head); extern int drm_put_head(drm_head_t * head); +extern unsigned int drm_debug; /* 1 to enable debug output */ extern unsigned int cards_limit; extern drm_head_t **drm_heads; extern struct drm_sysfs_class *drm_class; -- cgit v1.2.3