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 <pekka.paalanen@collabora.com>
This commit is contained in:
Pekka Paalanen 2025-07-28 16:38:34 +03:00 committed by Pekka Paalanen
parent e75873d376
commit e76da2ccd0

View file

@ -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;