[Intel-gfx] [PATCH] drm/dp: use DRM_DEBUG_DP() instead of drm_dbg for logging

Ville Syrjälä ville.syrjala at linux.intel.com
Mon Jan 21 14:57:21 UTC 2019


On Mon, Jan 21, 2019 at 01:27:58PM +0200, Jani Nikula wrote:
> We have a wrapper for a reason.
> 
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>

Reviewed-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

> ---
>  drivers/gpu/drm/drm_dp_helper.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_dp_helper.c b/drivers/gpu/drm/drm_dp_helper.c
> index 26835d174939..4def0bface85 100644
> --- a/drivers/gpu/drm/drm_dp_helper.c
> +++ b/drivers/gpu/drm/drm_dp_helper.c
> @@ -194,11 +194,11 @@ drm_dp_dump_access(const struct drm_dp_aux *aux,
>  	const char *arrow = request == DP_AUX_NATIVE_READ ? "->" : "<-";
>  
>  	if (ret > 0)
> -		drm_dbg(DRM_UT_DP, "%s: 0x%05x AUX %s (ret=%3d) %*ph\n",
> -			aux->name, offset, arrow, ret, min(ret, 20), buffer);
> +		DRM_DEBUG_DP("%s: 0x%05x AUX %s (ret=%3d) %*ph\n",
> +			     aux->name, offset, arrow, ret, min(ret, 20), buffer);
>  	else
> -		drm_dbg(DRM_UT_DP, "%s: 0x%05x AUX %s (ret=%3d)\n",
> -			aux->name, offset, arrow, ret);
> +		DRM_DEBUG_DP("%s: 0x%05x AUX %s (ret=%3d)\n",
> +			     aux->name, offset, arrow, ret);
>  }
>  
>  /**
> -- 
> 2.20.1
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Ville Syrjälä
Intel


More information about the Intel-gfx mailing list