drm: add helper for printing to log or seq_file
authorRob Clark <robdclark@gmail.com>
Sat, 5 Nov 2016 15:08:07 +0000 (11:08 -0400)
committerSean Paul <seanpaul@chromium.org>
Tue, 8 Nov 2016 21:38:03 +0000 (16:38 -0500)
commitd8187177b0b195368699ba12b5fa8cd5fdc39b79
tree88456b43e3f3dfc4af5c6940eb44469d7032982c
parent65c7dc18b2b6628156c5ed2bc5ef66bca17267fb
drm: add helper for printing to log or seq_file

Sometimes it is nice not to duplicate equivalent printk() and
seq_printf() code.

v2: simplify things w/ va_format, and use dev_printk, docs

Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1478358492-30738-3-git-send-email-robdclark@gmail.com
Documentation/gpu/drm-internals.rst
drivers/gpu/drm/Makefile
drivers/gpu/drm/drm_print.c [new file with mode: 0644]
include/drm/drm_print.h [new file with mode: 0644]