drm/i915: replace DRM_DEBUG with DRM_DEBUG_KMS in intel_lvds
authoryakui_zhao <yakui.zhao@intel.com>
Tue, 2 Jun 2009 06:10:49 +0000 (14:10 +0800)
committerDave Airlie <airlied@redhat.com>
Thu, 11 Jun 2009 08:40:36 +0000 (18:40 +1000)
Use the DRM_DEBUG_KMS macro definition to print the debug info for
the LVDS.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/intel_lvds.c

index a7ae9f46aa9a99493958d708432064802e991880..f22e6efbe6a3268ec8a1750ebcf1290482eef266 100644 (file)
@@ -37,6 +37,8 @@
 #include "i915_drm.h"
 #include "i915_drv.h"
 
+#define I915_LVDS "i915_lvds"
+
 /**
  * Sets the backlight level.
  *
@@ -447,7 +449,8 @@ static const struct drm_encoder_funcs intel_lvds_enc_funcs = {
 
 static int __init intel_no_lvds_dmi_callback(const struct dmi_system_id *id)
 {
-       DRM_DEBUG("Skipping LVDS initialization for %s\n", id->ident);
+       DRM_DEBUG_KMS(I915_LVDS,
+                     "Skipping LVDS initialization for %s\n", id->ident);
        return 1;
 }
 
@@ -646,7 +649,7 @@ out:
        return;
 
 failed:
-       DRM_DEBUG("No LVDS modes found, disabling.\n");
+       DRM_DEBUG_KMS(I915_LVDS, "No LVDS modes found, disabling.\n");
        if (intel_output->ddc_bus)
                intel_i2c_destroy(intel_output->ddc_bus);
        drm_connector_cleanup(connector);
This page took 0.027359 seconds and 5 git commands to generate.