diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-12-08 01:22:59 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-12-08 18:48:34 +0000 |
commit | e8a70cab253cf4c54855ffc2b1997e501f03e2a4 (patch) | |
tree | 021a423def6989e1e70e8355f88b9b2db9e1a532 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 6647852abc1fd74e9c5e0dcf404ea4cb9c929630 (diff) |
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
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions