Skip to content

Commit

Permalink
i915: reuse %ph to dump small buffers
Browse files Browse the repository at this point in the history
Instead of pushing each byte via stack the specifier allows to supply the
pointer and length to dump buffers up to 64 bytes long.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Andy Shevchenko authored and Daniel Vetter committed Jan 17, 2015
1 parent 973a5b0 commit 6f34cc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/i915/intel_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3773,7 +3773,7 @@ intel_dp_check_mst_status(struct intel_dp *intel_dp)
intel_dp_stop_link_train(intel_dp);
}

DRM_DEBUG_KMS("got esi %02x %02x %02x\n", esi[0], esi[1], esi[2]);
DRM_DEBUG_KMS("got esi %3ph\n", esi);
ret = drm_dp_mst_hpd_irq(&intel_dp->mst_mgr, esi, &handled);

if (handled) {
Expand All @@ -3789,7 +3789,7 @@ intel_dp_check_mst_status(struct intel_dp *intel_dp)

bret = intel_dp_get_sink_irq_esi(intel_dp, esi);
if (bret == true) {
DRM_DEBUG_KMS("got esi2 %02x %02x %02x\n", esi[0], esi[1], esi[2]);
DRM_DEBUG_KMS("got esi2 %3ph\n", esi);
goto go_again;
}
} else
Expand Down

0 comments on commit 6f34cc3

Please sign in to comment.