Skip to content

Commit

Permalink
drm/i915/dp: Better hexdump of DPCD
Browse files Browse the repository at this point in the history
%hx alone prints 0 as "0", not "00".

Signed-off-by: Adam Jackson <[email protected]>
Reviewed-by: Keith Packard <[email protected]>
Signed-off-by: Keith Packard <[email protected]>
  • Loading branch information
nwnk authored and keith-packard committed Jul 25, 2011
1 parent 9de88e6 commit ac66ae8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/gpu/drm/i915/intel_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ac66ae8

Please sign in to comment.