]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Add drm_puts() to complement drm_printf()
authorJordan Crouse <jcrouse@codeaurora.org>
Tue, 24 Jul 2018 16:33:21 +0000 (10:33 -0600)
committerRob Clark <robdclark@gmail.com>
Mon, 30 Jul 2018 12:49:35 +0000 (08:49 -0400)
commitc6c2e1c64589ba0927a1512a3733db86a6bc80f2
treecc66779ca5c9f64b0e35021e1d868d50052d6f5d
parent10e6b969c0216a9460d210d3a2bbf5e5f77bb4ce
drm: Add drm_puts() to complement drm_printf()

Add drm_puts() for a much faster path to print constant strings
into a drm_printer object with memcpy and friends. This can
have seconds off of really large outputs such as GPU dumps.

If the drm_printer object supports a custom puts function then
use that otherwise fall back to the slower legacy printf call.

v2: Add documentation for drm_puts() per Daniel Vetter

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
[robclark fix minor htmldocs warning]
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/drm_print.c
include/drm/drm_print.h