[Intel-xe] [PATCH] drm/xe/pat: Use 0 instead of space on error

Matt Roper matthew.d.roper at intel.com
Wed Sep 6 19:50:20 UTC 2023


On Wed, Sep 06, 2023 at 12:30:09PM -0700, Lucas De Marchi wrote:
> Use 0 in format string instead of space so it shows as
> 
> 	[drm] *ERROR* Missing PAT table for platform with graphics version 20.04!
> 
> instead of
> 
> 	[drm] *ERROR* Missing PAT table for platform with graphics version 20. 4!
> 
> Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>

Reviewed-by: Matt Roper <matthew.d.roper at intel.com>

> ---
>  drivers/gpu/drm/xe/xe_pat.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_pat.c b/drivers/gpu/drm/xe/xe_pat.c
> index b56a65779d26..71e0e047fff3 100644
> --- a/drivers/gpu/drm/xe/xe_pat.c
> +++ b/drivers/gpu/drm/xe/xe_pat.c
> @@ -107,7 +107,7 @@ void xe_pat_init(struct xe_gt *gt)
>  		 * raise an error rather than trying to silently inherit the
>  		 * most recent platform's behavior.
>  		 */
> -		drm_err(&xe->drm, "Missing PAT table for platform with graphics version %d.%2d!\n",
> +		drm_err(&xe->drm, "Missing PAT table for platform with graphics version %d.%02d!\n",
>  			GRAPHICS_VER(xe), GRAPHICS_VERx100(xe) % 100);
>  	}
>  }
> -- 
> 2.40.1
> 

-- 
Matt Roper
Graphics Software Engineer
Linux GPU Platform Enablement
Intel Corporation


More information about the Intel-xe mailing list