Hi Sean Paul.
On Mon, Jun 08, 2020 at 05:04:51PM -0400, Sean Paul wrote:
> From: Sean Paul <seanp...@chromium.org>
> 
> Use the drm logging helpers to output these messages to ensure they'll
> be included by the drm tracefs instance.
> 
> Signed-off-by: Sean Paul <seanp...@chromium.org>
> 
> Changes in v5:
> -Added to the set
> ---
>  drivers/gpu/drm/drm_mipi_dbi.c | 8 ++------
>  1 file changed, 2 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_mipi_dbi.c b/drivers/gpu/drm/drm_mipi_dbi.c
> index fd8d672972a9..ff6f83eeee09 100644
> --- a/drivers/gpu/drm/drm_mipi_dbi.c
> +++ b/drivers/gpu/drm/drm_mipi_dbi.c
> @@ -769,9 +769,7 @@ static int mipi_dbi_spi1e_transfer(struct mipi_dbi *dbi, 
> int dc,
>       int i, ret;
>       u8 *dst;
>  
> -     if (drm_debug_enabled(DRM_UT_DRIVER))
> -             pr_debug("[drm:%s] dc=%d, max_chunk=%zu, transfers:\n",
> -                      __func__, dc, max_chunk);
> +     DRM_DEBUG_DRIVER("dc=%d, max_chunk=%zu, transfers:\n", dc, max_chunk);
Today we have drm_dbg(...) as the preferred logging method.

        Sam

>  
>       tr.speed_hz = mipi_dbi_spi_cmd_max_speed(spi, len);
>       spi_message_init_with_transfers(&m, &tr, 1);
> @@ -893,9 +891,7 @@ static int mipi_dbi_spi1_transfer(struct mipi_dbi *dbi, 
> int dc,
>       max_chunk = dbi->tx_buf9_len;
>       dst16 = dbi->tx_buf9;
>  
> -     if (drm_debug_enabled(DRM_UT_DRIVER))
> -             pr_debug("[drm:%s] dc=%d, max_chunk=%zu, transfers:\n",
> -                      __func__, dc, max_chunk);
> +     DRM_DEBUG_DRIVER("dc=%d, max_chunk=%zu, transfers:\n", dc, max_chunk);
>  
>       max_chunk = min(max_chunk / 2, len);
>  
> -- 
> Sean Paul, Software Engineer, Google / Chromium OS
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to