diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2009-07-20 01:48:04 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-08-04 00:02:31 -0400 |
commit | 8a4c47f346cc7a12d0897c05eb3cc1add26b487f (patch) | |
tree | 3beb08565466a2aa5649debd9dad411388afa53a /drivers/gpu/drm/drm_modes.c | |
parent | 5c61259e6c7290082108e93815f7f72f27da14f4 (diff) |
drm: Remove the unused prefix in DRM_DEBUG_KMS/DRIVER/MODE
We will have to add a prefix when using the macro defintion of DRM_DEBUG_KMS
/DRM_DEBUG_DRIVER/MODE. It is not convenient. We should use the DRM_NAME
as default prefix.
So remove the prefix in the macro definition of DRM_DEBUG_KMS/DRIVER/MODE.
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Acked-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_modes.c')
-rw-r--r-- | drivers/gpu/drm/drm_modes.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index fd489d76fbbc..5eca2d5c5f23 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c | |||
@@ -40,7 +40,6 @@ | |||
40 | #include "drm.h" | 40 | #include "drm.h" |
41 | #include "drm_crtc.h" | 41 | #include "drm_crtc.h" |
42 | 42 | ||
43 | #define DRM_MODESET_DEBUG "drm_mode" | ||
44 | /** | 43 | /** |
45 | * drm_mode_debug_printmodeline - debug print a mode | 44 | * drm_mode_debug_printmodeline - debug print a mode |
46 | * @dev: DRM device | 45 | * @dev: DRM device |
@@ -53,8 +52,8 @@ | |||
53 | */ | 52 | */ |
54 | void drm_mode_debug_printmodeline(struct drm_display_mode *mode) | 53 | void drm_mode_debug_printmodeline(struct drm_display_mode *mode) |
55 | { | 54 | { |
56 | DRM_DEBUG_MODE(DRM_MODESET_DEBUG, | 55 | DRM_DEBUG_MODE("Modeline %d:\"%s\" %d %d %d %d %d %d %d %d %d %d " |
57 | "Modeline %d:\"%s\" %d %d %d %d %d %d %d %d %d %d 0x%x 0x%x\n", | 56 | "0x%x 0x%x\n", |
58 | mode->base.id, mode->name, mode->vrefresh, mode->clock, | 57 | mode->base.id, mode->name, mode->vrefresh, mode->clock, |
59 | mode->hdisplay, mode->hsync_start, | 58 | mode->hdisplay, mode->hsync_start, |
60 | mode->hsync_end, mode->htotal, | 59 | mode->hsync_end, mode->htotal, |
@@ -819,8 +818,7 @@ void drm_mode_prune_invalid(struct drm_device *dev, | |||
819 | list_del(&mode->head); | 818 | list_del(&mode->head); |
820 | if (verbose) { | 819 | if (verbose) { |
821 | drm_mode_debug_printmodeline(mode); | 820 | drm_mode_debug_printmodeline(mode); |
822 | DRM_DEBUG_MODE(DRM_MODESET_DEBUG, | 821 | DRM_DEBUG_MODE("Not using %s mode %d\n", |
823 | "Not using %s mode %d\n", | ||
824 | mode->name, mode->status); | 822 | mode->name, mode->status); |
825 | } | 823 | } |
826 | drm_mode_destroy(dev, mode); | 824 | drm_mode_destroy(dev, mode); |