]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use snprintf to avoid line-break when pretty-printing engines
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Dec 2017 01:22:59 +0000 (01:22 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Dec 2017 18:48:34 +0000 (18:48 +0000)
commite8a70cab253cf4c54855ffc2b1997e501f03e2a4
tree021a423def6989e1e70e8355f88b9b2db9e1a532
parent6647852abc1fd74e9c5e0dcf404ea4cb9c929630
drm/i915: Use snprintf to avoid line-break when pretty-printing engines

When printing the execlist ports, we first print the ELSP header then
follow it with the pretty-printed request. Since switching to
drm_printer and show the output via printk, it automatically appends a
newline to each call (unlike the old seq_printf output). To avoid the
unwanted line break, construct the ELSP request header in a temporary
buffer.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171208012303.25504-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_engine_cs.c