drm: Enable pr_debug() for drm_printer
authorChris Wilson <[email protected]>
Fri, 27 Oct 2017 11:06:02 +0000 (12:06 +0100)
committerSean Paul <[email protected]>
Mon, 30 Oct 2017 20:59:21 +0000 (16:59 -0400)
pr_debug() is conditionally compiled and requires either
dynamic-debugging to be enabled or for the code to opt-in using #define
DEBUG. Since drm_print provides a central debugging facility using
pr_debug(), make sure it will always produce output.

Signed-off-by: Chris Wilson <[email protected]>
Cc: Rob Clark <[email protected]>
Cc: Daniel Vetter <[email protected]>
Signed-off-by: Sean Paul <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/drm_print.c

index 0b3bf476dc4b509e0c1c5d02a3800d24adb6501a..82ff327eb2df8cde1c773979b8bbfc6812e4594d 100644 (file)
@@ -23,6 +23,8 @@
  * Rob Clark <[email protected]>
  */
 
+#define DEBUG /* for pr_debug() */
+
 #include <stdarg.h>
 #include <linux/seq_file.h>
 #include <drm/drmP.h>