Skip to contentSkip to conversation

drm: Enable pr_debug() for drm_printer

PATCH Applied Chris Wilson 2 participants 2 messages Oct 27, 2017 – Oct 30, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: Enable pr_debug() for drm_printer

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.

Cc Rob Clark <[email protected]>
Cc Daniel Vetter <[email protected]>
---
 drivers/gpu/drm/drm_print.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/drm_print.c +2 -0
index 0b3bf476dc4b..82ff327eb2df 100644
@@ -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>
Signature · 6 lines
2.15.0.rc2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Applied
#1 lore raw
Quoted 8 lines · Chris Wilson

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.

Cc Rob Clark <[email protected]>
Cc Daniel Vetter <[email protected]>

Applied to drm-misc-next

Thanks!

Sean

Quoted 24 lines
---
 drivers/gpu/drm/drm_print.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/drm_print.c +2 -0
index 0b3bf476dc4b..82ff327eb2df 100644
@@ -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>
Signature · 6 lines
2.15.0.rc2

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 5 lines
Sean Paul, Software Engineer, Google / Chromium OS
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel