drm/i915/dp: Better hexdump of DPCD
authorAdam Jackson <ajax@redhat.com>
Tue, 12 Jul 2011 21:38:03 +0000 (17:38 -0400)
committerKeith Packard <keithp@keithp.com>
Mon, 25 Jul 2011 17:35:00 +0000 (10:35 -0700)
%hx alone prints 0 as "0", not "00".

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_dp.c

index 2f0566b12f71c6e8e69f146e1cf7cbe330c70099..13bddd34c057d0b1e08557fc650ffae8a30507d3 100644 (file)
@@ -1678,10 +1678,10 @@ intel_dp_detect(struct drm_connector *connector, bool force)
        else
                status = g4x_dp_detect(intel_dp);
 
-       DRM_DEBUG_KMS("DPCD: %hx%hx%hx%hx%hx%hx%hx%hx\n", intel_dp->dpcd[0],
-                     intel_dp->dpcd[1], intel_dp->dpcd[2], intel_dp->dpcd[3],
-                     intel_dp->dpcd[4], intel_dp->dpcd[5], intel_dp->dpcd[6],
-                     intel_dp->dpcd[7]);
+       DRM_DEBUG_KMS("DPCD: %02hx%02hx%02hx%02hx%02hx%02hx%02hx%02hx\n",
+                     intel_dp->dpcd[0], intel_dp->dpcd[1], intel_dp->dpcd[2],
+                     intel_dp->dpcd[3], intel_dp->dpcd[4], intel_dp->dpcd[5],
+                     intel_dp->dpcd[6], intel_dp->dpcd[7]);
 
        if (status != connector_status_connected)
                return status;