diff options
| -rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_drm.h | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.h b/drivers/gpu/drm/nouveau/nouveau_drm.h index ab0c17430c66..3c12e9862e37 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.h +++ b/drivers/gpu/drm/nouveau/nouveau_drm.h | |||
| @@ -132,20 +132,13 @@ nouveau_dev(struct drm_device *dev) | |||
| 132 | int nouveau_drm_suspend(struct pci_dev *, pm_message_t); | 132 | int nouveau_drm_suspend(struct pci_dev *, pm_message_t); |
| 133 | int nouveau_drm_resume(struct pci_dev *); | 133 | int nouveau_drm_resume(struct pci_dev *); |
| 134 | 134 | ||
| 135 | #define NV_PRINTK(level, code, drm, fmt, args...) \ | 135 | #define NV_FATAL(cli, fmt, args...) nv_fatal((cli), fmt, ##args) |
| 136 | printk(level "nouveau " code "[ DRM][%s] " fmt, \ | 136 | #define NV_ERROR(cli, fmt, args...) nv_error((cli), fmt, ##args) |
| 137 | pci_name((drm)->dev->pdev), ##args) | 137 | #define NV_WARN(cli, fmt, args...) nv_warn((cli), fmt, ##args) |
| 138 | #define NV_FATAL(drm, fmt, args...) \ | 138 | #define NV_INFO(cli, fmt, args...) nv_info((cli), fmt, ##args) |
| 139 | NV_PRINTK(KERN_CRIT, "!", (drm), fmt, ##args) | 139 | #define NV_DEBUG(cli, fmt, args...) do { \ |
| 140 | #define NV_ERROR(drm, fmt, args...) \ | ||
| 141 | NV_PRINTK(KERN_ERR, "E", (drm), fmt, ##args) | ||
| 142 | #define NV_WARN(drm, fmt, args...) \ | ||
| 143 | NV_PRINTK(KERN_WARNING, "W", (drm), fmt, ##args) | ||
| 144 | #define NV_INFO(drm, fmt, args...) \ | ||
| 145 | NV_PRINTK(KERN_INFO, " ", (drm), fmt, ##args) | ||
| 146 | #define NV_DEBUG(drm, fmt, args...) do { \ | ||
| 147 | if (drm_debug & DRM_UT_DRIVER) \ | 140 | if (drm_debug & DRM_UT_DRIVER) \ |
| 148 | NV_PRINTK(KERN_DEBUG, "D", drm, fmt, ##args); \ | 141 | nv_info((cli), fmt, ##args); \ |
| 149 | } while (0) | 142 | } while (0) |
| 150 | 143 | ||
| 151 | #endif | 144 | #endif |
