Message ID | 20171027110617.31745-2-chris@chris-wilson.co.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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
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@chris-wilson.co.uk> --- drivers/gpu/drm/i915/i915_utils.h | 5 +++++ 1 file changed, 5 insertions(+)