drm: Add puts callback for the coredump printer
authorJordan Crouse <jcrouse@codeaurora.org>
Tue, 24 Jul 2018 16:33:23 +0000 (10:33 -0600)
committerRob Clark <robdclark@gmail.com>
Mon, 30 Jul 2018 12:49:41 +0000 (08:49 -0400)
commit5dc634bdbfd6dd9bdf98bce0d6f64878e1d47b1f
treefe3b6b07dcc1c70ad53b27c10f53e0ea9d52732b
parent4538d7324507fed892a18b79ad72c8501b6e7027
drm: Add puts callback for the coredump printer

Add a puts function for the coredump printer to bypass printf()
for constant strings for a speed boost. Reorganize the
coredump printf callback to share as much code as possible.

v2: Try to reuse code between print and puts as suggested by
    Chris Wilson

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/drm_print.c
include/drm/drm_print.h