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)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 15 Aug 2018 02:38:46 +0000 (19:38 -0700)
commitd10669b053a39ef47368b2db05543d2c913dc59d
treea95a46a7af09a42c2bc624e1bf1577f7180ee717
parentd8062d7021f36263cb39f8dbe60bb68d52e6618b
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

Change-Id: Idad43e786b5007cc4c794afaf04dd3ad03d58941
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]