]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/print: add drm_dbg_printer() for drm device specific printer
authorJani Nikula <jani.nikula@intel.com>
Tue, 16 Jan 2024 13:07:28 +0000 (15:07 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 9 Feb 2024 09:51:53 +0000 (11:51 +0200)
commit9fd6f61a297e944fa045a1cb6cd53916d0fea454
treee01f6eae9240f0d9b38d49c786809699aee01919
parent82195d48b77c71b5084a6d6a03d0c574a9fc6749
drm/print: add drm_dbg_printer() for drm device specific printer

We've lacked a device specific debug printer. Add one. Take category
into account too.

__builtin_return_address(0) is inaccurate here, so don't use it. If
necessary, we can later pass __func__ to drm_dbg_printer() by wrapping
it inside a macro.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/48607d58e5cdf8341ffdd522257542fa2ce41a19.1705410327.git.jani.nikula@intel.com
drivers/gpu/drm/drm_print.c
include/drm/drm_print.h