drm: Use vsnprintf extension %ph
authorJoe Perches <joe@perches.com>
Tue, 30 May 2017 23:35:37 +0000 (16:35 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 31 May 2017 08:30:38 +0000 (10:30 +0200)
commit46466b0dac3f6bee397c1db4f0ebfedf3e8c9e9c
tree9b115d63f292300957f723487a720cee78119411
parent99cdb35e787b277bc66ed9fe7d5f9852de9e0eb0
drm: Use vsnprintf extension %ph

Using the extension saves a bit of code.

Miscellanea:

o Neaten and simplify dump_dp_payload_table
o Removed trailing blank space from output

$ size drivers/gpu/drm/drm_dp_mst_topology.o.* drivers/gpu/drm/tinydrm/*.o*
   text    data     bss     dec     hex filename
  25848       0      16   25864    6508 drivers/gpu/drm/drm_dp_mst_topology.o.new
  26091       0      16   26107    65fb drivers/gpu/drm/drm_dp_mst_topology.o.old
   3362       2       0    3364     d24 drivers/gpu/drm/tinydrm/mipi-dbi.o.new
   3376       2       0    3378     d32 drivers/gpu/drm/tinydrm/mipi-dbi.o.old

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/a78a21b5f34947da65473a0b7326922cda51a3be.1496187315.git.joe@perches.com
drivers/gpu/drm/drm_dp_mst_topology.c
drivers/gpu/drm/tinydrm/mipi-dbi.c