diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_drm.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_drm.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.h b/drivers/gpu/drm/nouveau/nouveau_drm.h index ab2060767ba9..de8055220266 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.h +++ b/drivers/gpu/drm/nouveau/nouveau_drm.h | |||
@@ -168,11 +168,15 @@ nouveau_platform_device_create_(struct platform_device *pdev, | |||
168 | int size, void **pobject); | 168 | int size, void **pobject); |
169 | void nouveau_drm_device_remove(struct drm_device *dev); | 169 | void nouveau_drm_device_remove(struct drm_device *dev); |
170 | 170 | ||
171 | #define NV_FATAL(cli, fmt, args...) nv_fatal((cli), fmt, ##args) | 171 | #define NV_PRINTK(l,c,f,a...) do { \ |
172 | #define NV_ERROR(cli, fmt, args...) nv_error((cli), fmt, ##args) | 172 | struct nouveau_cli *_cli = (c); \ |
173 | #define NV_WARN(cli, fmt, args...) nv_warn((cli), fmt, ##args) | 173 | nv_##l(_cli, f, ##a); \ |
174 | #define NV_INFO(cli, fmt, args...) nv_info((cli), fmt, ##args) | 174 | } while(0) |
175 | #define NV_DEBUG(cli, fmt, args...) nv_debug((cli), fmt, ##args) | 175 | #define NV_FATAL(drm,f,a...) NV_PRINTK(fatal, &(drm)->client, f, ##a) |
176 | #define NV_ERROR(drm,f,a...) NV_PRINTK(error, &(drm)->client, f, ##a) | ||
177 | #define NV_WARN(drm,f,a...) NV_PRINTK(warn, &(drm)->client, f, ##a) | ||
178 | #define NV_INFO(drm,f,a...) NV_PRINTK(info, &(drm)->client, f, ##a) | ||
179 | #define NV_DEBUG(drm,f,a...) NV_PRINTK(debug, &(drm)->client, f, ##a) | ||
176 | 180 | ||
177 | extern int nouveau_modeset; | 181 | extern int nouveau_modeset; |
178 | 182 | ||