Revert "drm/sched: Define pr_fmt() for DRM using pr_*()"
authorLuben Tuikov <ltuikov89@gmail.com>
Sat, 11 Nov 2023 01:01:57 +0000 (20:01 -0500)
committerLuben Tuikov <ltuikov89@gmail.com>
Tue, 14 Nov 2023 00:55:25 +0000 (19:55 -0500)
commitb0e396d68fef9c9c050dfbb590cc0066441f65c7
treea1678378f8394ac4fdd3acaa6ad1f0e6dc98527a
parent50c1a36f594bb3dd33f3f9386c5d960cd12327d8
Revert "drm/sched: Define pr_fmt() for DRM using pr_*()"

From Jani:
The drm_print.[ch] facilities use very few pr_*() calls directly. The
users of pr_*() calls do not necessarily include <drm/drm_print.h> at
all, and really don't have to.

Even the ones that do include it, usually have <linux/...> includes
first, and <drm/...> includes next. Notably, <linux/kernel.h> includes
<linux/printk.h>.

And, of course, <linux/printk.h> defines pr_fmt() itself if not already
defined.

No, it's encouraged not to use pr_*() at all, and prefer drm device
based logging, or device based logging.

This reverts commit 36245bd02e88e68ac5955c2958c968879d7b75a9.

Signed-off-by: Luben Tuikov <ltuikov89@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/878r75wzm9.fsf@intel.com
Acked-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Jani Nikula <jani.nikula@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231111024130.11464-2-ltuikov89@gmail.com
include/drm/drm_print.h