drm/xe/pat: Use 0 instead of space on error
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 6 Sep 2023 19:30:09 +0000 (12:30 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:41:03 +0000 (11:41 -0500)
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!

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://lore.kernel.org/r/20230906193009.1912129-1-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_pat.c

index b56a65779d26baa601efe21d2fdf10c9d63ceda8..71e0e047fff3b998fabdae9e07d2213493156b54 100644 (file)
@@ -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);
        }
 }