diff options
author | Jani Nikula <jani.nikula@intel.com> | 2019-10-28 12:38:15 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2019-11-14 14:08:19 +0200 |
commit | bdbf43d739f4d2379419504747b589b421c67e20 (patch) | |
tree | 5c56ea43c9727b8bc1d46df5b5c5b86ccd84d5d1 /drivers/gpu/drm/i915/i915_utils.c | |
parent | db9cd76d099a0e4337d30e22c89fe019332bcec1 (diff) | |
download | lwn-bdbf43d739f4d2379419504747b589b421c67e20.tar.gz lwn-bdbf43d739f4d2379419504747b589b421c67e20.zip |
drm/i915: use drm_debug_enabled() to check for debug categories
Allow better abstraction of the drm_debug global variable in the
future. No functional changes.
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Sean Paul <sean@poorly.run>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/e94fe4977c5b8cac68556318be81f8e422e973fd.1572258936.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_utils.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_utils.c b/drivers/gpu/drm/i915/i915_utils.c index 16acdf7bdbe6..f66540e15793 100644 --- a/drivers/gpu/drm/i915/i915_utils.c +++ b/drivers/gpu/drm/i915/i915_utils.c @@ -23,7 +23,7 @@ __i915_printk(struct drm_i915_private *dev_priv, const char *level, struct va_format vaf; va_list args; - if (is_debug && !(drm_debug & DRM_UT_DRIVER)) + if (is_debug && !drm_debug_enabled(DRM_UT_DRIVER)) return; va_start(args, fmt); |