提交 6f34cc39 编写于 作者: A Andy Shevchenko 提交者: Daniel Vetter

i915: reuse %ph to dump small buffers

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: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 973a5b06
...@@ -3773,7 +3773,7 @@ intel_dp_check_mst_status(struct intel_dp *intel_dp) ...@@ -3773,7 +3773,7 @@ intel_dp_check_mst_status(struct intel_dp *intel_dp)
intel_dp_stop_link_train(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); ret = drm_dp_mst_hpd_irq(&intel_dp->mst_mgr, esi, &handled);
if (handled) { if (handled) {
...@@ -3789,7 +3789,7 @@ intel_dp_check_mst_status(struct intel_dp *intel_dp) ...@@ -3789,7 +3789,7 @@ intel_dp_check_mst_status(struct intel_dp *intel_dp)
bret = intel_dp_get_sink_irq_esi(intel_dp, esi); bret = intel_dp_get_sink_irq_esi(intel_dp, esi);
if (bret == true) { 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; goto go_again;
} }
} else } else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册