From 3bede5dbbcd307d9fb675562f780bf9525efb3d4 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 2 May 2022 19:24:43 +0200 Subject: [PATCH] gen_table_fourcc: strip _MODIFIER suffix for INVALID This is the only modifier printed with a "_MODIFIER" suffix. It looks inconsistent when callers already print this word (e.g. "modifier: INVALID_MODIFIER"). Signed-off-by: Simon Ser Reviewed-by: Marius Vlad --- gen_table_fourcc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen_table_fourcc.py b/gen_table_fourcc.py index 4236fd79..1473d437 100644 --- a/gen_table_fourcc.py +++ b/gen_table_fourcc.py @@ -56,7 +56,7 @@ with open(towrite, "w") as f: that script instead of adding here entries manually! */ static const struct drmFormatModifierInfo drm_format_modifier_table[] = { ''') - f.write(' { DRM_MODIFIER_INVALID(NONE, INVALID_MODIFIER) },\n') + f.write(' { DRM_MODIFIER_INVALID(NONE, INVALID) },\n') f.write(' { DRM_MODIFIER_LINEAR(NONE, LINEAR) },\n') for entry in fm_re['intel']: