]> 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)
commitd77ab00618a90d77dadf8bbea96726d784a1d044
tree021a423def6989e1e70e8355f88b9b2db9e1a532
parente824b687f5f49294d59e69f7a70d7baf5e5aa637
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