i915: reuse %ph to dump small buffers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 15 Jan 2015 11:45:09 +0000 (13:45 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 17 Jan 2015 04:06:40 +0000 (05:06 +0100)
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>
drivers/gpu/drm/i915/intel_dp.c

index 88d81a8b0d3580c089bcd645e26f2da55a43abb0..df7b558f322285582012e8584fc2a7ed5358a9f7 100644 (file)
@@ -3773,7 +3773,7 @@ go_again:
                                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) {
@@ -3789,7 +3789,7 @@ go_again:
 
                                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