Re: [PATCH] drm: Use vsnprintf extension %ph

2017-06-11 Thread Andy Shevchenko
On Sun, Jun 11, 2017 at 3:20 AM, Joe Perches wrote: > On Sat, 2017-06-10 at 19:12 +0300, Andy Shevchenko wrote: >> On Wed, May 31, 2017 at 2:35 AM, Joe Perches wrote: >> > Using the extension saves a bit of code. >> > + seq_printf(m, "faux/mst: %*ph\n", 2, buf); >> > +

Re: [PATCH] drm: Use vsnprintf extension %ph

2017-06-10 Thread Joe Perches
On Sat, 2017-06-10 at 19:12 +0300, Andy Shevchenko wrote: > On Wed, May 31, 2017 at 2:35 AM, Joe Perches wrote: > > Using the extension saves a bit of code. > > + seq_printf(m, "faux/mst: %*ph\n", 2, buf); > > + seq_printf(m, "mst ctrl: %*ph\n", 1, buf); > > +

Re: [PATCH] drm: Use vsnprintf extension %ph

2017-06-10 Thread Andy Shevchenko
On Wed, May 31, 2017 at 2:35 AM, Joe Perches wrote: > Using the extension saves a bit of code. > + seq_printf(m, "faux/mst: %*ph\n", 2, buf); > + seq_printf(m, "mst ctrl: %*ph\n", 1, buf); > + seq_printf(m, "branch oui: %*phN devid: ", 3, buf); All abo

Re: [PATCH] drm: Use vsnprintf extension %ph

2017-05-31 Thread Daniel Vetter
On Tue, May 30, 2017 at 04:35:37PM -0700, Joe Perches wrote: > Using the extension saves a bit of code. > > Miscellanea: > > o Neaten and simplify dump_dp_payload_table > o Removed trailing blank space from output Not a huge fan of smashing random trivia into the same patch, but merged anyway. %

[PATCH] drm: Use vsnprintf extension %ph

2017-05-30 Thread Joe Perches
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* textdata bss dec hex filename 25848 0 16 2586