From e76da2ccd0935d27baada2272abd1d3af143ed7c Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Mon, 28 Jul 2025 16:38:34 +0300 Subject: [PATCH] color-lcms: shorten parametric profile description Details are printed separately for logs and debugs, we don't need to clutter the (short) description with these. The name_part is already long enough for frontend-created automatic profiles. Client-created parametric profiles will be indistinguishable from each other, but we also don't log them anywhere. In debug prints, they are identified by id numbers and printed in detail. Signed-off-by: Pekka Paalanen --- libweston/color-lcms/color-profile.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libweston/color-lcms/color-profile.c b/libweston/color-lcms/color-profile.c index 9a10952c9..c5751ba85 100644 --- a/libweston/color-lcms/color-profile.c +++ b/libweston/color-lcms/color-profile.c @@ -709,10 +709,7 @@ cmlcms_get_color_profile_from_params(struct weston_color_manager *cm_base, return true; } - str_printf(&desc, "Parametric (%s): %s primaries, %s transfer function", - name_part, - params->primaries_info ? params->primaries_info->desc : "custom", - params->tf.info->desc); + str_printf(&desc, "Parametric %s", name_part); cprof = cmlcms_color_profile_alloc(cm, CMLCMS_PROFILE_TYPE_PARAMS, desc); *cprof->params = *params;