[PATCH 2/4] drm/i915: Enable pr_debug() for CI debugging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



pr_debug() is compiled out normally, and has to be selected in by
enabling dynamic-debug in Kconfig, or by code #define DEBUG. As we are
making more use of central debugging facilities using pr_debug, we need
to opt-in and enable the output for CI.

Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
---
 drivers/gpu/drm/i915/i915_utils.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_utils.h b/drivers/gpu/drm/i915/i915_utils.h
index af3d7cc53fa1..afd9569aaac2 100644
--- a/drivers/gpu/drm/i915/i915_utils.h
+++ b/drivers/gpu/drm/i915/i915_utils.h
@@ -25,6 +25,11 @@
 #ifndef __I915_UTILS_H
 #define __I915_UTILS_H
 
+/* Enable pr_debug on request */
+#if IS_ENABLED(CONFIG_DRM_I915_DEBUG)
+#define DEBUG
+#endif
+
 #undef WARN_ON
 /* Many gcc seem to no see through this and fall over :( */
 #if 0
-- 
2.15.0.rc2

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux