[PATCH v5 01/13] drm/mipi_dbi: Convert pr_debug calls to DRM_DEBUG_DRIVER
Sam Ravnborg
sam at ravnborg.org
Tue Jun 9 18:28:16 UTC 2020
Hi Sean Paul.
On Mon, Jun 08, 2020 at 05:04:51PM -0400, Sean Paul wrote:
> From: Sean Paul <seanpaul at 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 <seanpaul at 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 at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
More information about the dri-devel
mailing list