[PATCH v2 4/9] drm/i2c/sil164: use drm_debug_enabled() to check for debug categories
Francisco Jerez
currojerez at riseup.net
Tue Sep 24 19:29:22 UTC 2019
Jani Nikula <jani.nikula at intel.com> writes:
> Allow better abstraction of the drm_debug global variable in the
> future. No functional changes.
>
> Cc: Francisco Jerez <currojerez at riseup.net>
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
> ---
> drivers/gpu/drm/i2c/sil164_drv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i2c/sil164_drv.c b/drivers/gpu/drm/i2c/sil164_drv.c
> index 8bcf0d199145..a839f78a4c8a 100644
> --- a/drivers/gpu/drm/i2c/sil164_drv.c
> +++ b/drivers/gpu/drm/i2c/sil164_drv.c
> @@ -44,7 +44,7 @@ struct sil164_priv {
> ((struct sil164_priv *)to_encoder_slave(x)->slave_priv)
>
> #define sil164_dbg(client, format, ...) do { \
> - if (drm_debug & DRM_UT_KMS) \
> + if (drm_debug_enabled(DRM_UT_KMS)) \
> dev_printk(KERN_DEBUG, &client->dev, \
> "%s: " format, __func__, ## __VA_ARGS__); \
> } while (0)
> --
> 2.20.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190924/9245dd3e/attachment-0001.sig>
More information about the dri-devel
mailing list