]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: Make hpd debug messages less cryptic
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 11 Aug 2014 15:37:37 +0000 (18:37 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Aug 2014 17:32:15 +0000 (19:32 +0200)
Don't print raw numbers, use port_name() and tell the user whether it's
long or short without having to figure out what the other magic number
means.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_dp.c

index f0d24db76e72fdc2b8b12d57fea8dc83c5d87ec4..36eb1f234608d5035d2fe7c7a105484c290a34db 100644 (file)
@@ -1777,7 +1777,9 @@ static inline void intel_hpd_irq_handler(struct drm_device *dev,
                                long_hpd = (dig_hotplug_reg >> dig_shift) & PORTB_HOTPLUG_LONG_DETECT;
                        }
 
-                       DRM_DEBUG_DRIVER("digital hpd port %d %d\n", port, long_hpd);
+                       DRM_DEBUG_DRIVER("digital hpd port %c - %s\n",
+                                        port_name(port),
+                                        long_hpd ? "long" : "short");
                        /* for long HPD pulses we want to have the digital queue happen,
                           but we still want HPD storm detection to function. */
                        if (long_hpd) {
index 3b88255d87dcd6bda9130c5a838c198d232fd071..def55cdfef2547066b4e1c2a46ae79c9564cf453 100644 (file)
@@ -4041,7 +4041,8 @@ intel_dp_hpd_pulse(struct intel_digital_port *intel_dig_port, bool long_hpd)
        if (intel_dig_port->base.type != INTEL_OUTPUT_EDP)
                intel_dig_port->base.type = INTEL_OUTPUT_DISPLAYPORT;
 
-       DRM_DEBUG_KMS("got hpd irq on port %d - %s\n", intel_dig_port->port,
+       DRM_DEBUG_KMS("got hpd irq on port %c - %s\n",
+                     port_name(intel_dig_port->port),
                      long_hpd ? "long" : "short");
 
        if (long_hpd) {