diff options
Diffstat (limited to 'drivers/gpu/drm/drm_stub.c')
-rw-r--r-- | drivers/gpu/drm/drm_stub.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c index b9631e3a1ea6..89050684fe0d 100644 --- a/drivers/gpu/drm/drm_stub.c +++ b/drivers/gpu/drm/drm_stub.c | |||
@@ -51,7 +51,22 @@ struct idr drm_minors_idr; | |||
51 | struct class *drm_class; | 51 | struct class *drm_class; |
52 | struct proc_dir_entry *drm_proc_root; | 52 | struct proc_dir_entry *drm_proc_root; |
53 | struct dentry *drm_debugfs_root; | 53 | struct dentry *drm_debugfs_root; |
54 | 54 | void drm_ut_debug_printk(unsigned int request_level, | |
55 | const char *prefix, | ||
56 | const char *function_name, | ||
57 | const char *format, ...) | ||
58 | { | ||
59 | va_list args; | ||
60 | |||
61 | if (drm_debug & request_level) { | ||
62 | if (function_name) | ||
63 | printk(KERN_DEBUG "[%s:%s], ", prefix, function_name); | ||
64 | va_start(args, format); | ||
65 | vprintk(format, args); | ||
66 | va_end(args); | ||
67 | } | ||
68 | } | ||
69 | EXPORT_SYMBOL(drm_ut_debug_printk); | ||
55 | static int drm_minor_get_id(struct drm_device *dev, int type) | 70 | static int drm_minor_get_id(struct drm_device *dev, int type) |
56 | { | 71 | { |
57 | int new_id; | 72 | int new_id; |