From dd67dd328730bee4a65fb8bd61d5ebd1bef97265 Mon Sep 17 00:00:00 2001 From: Jacob Boerema Date: Sat, 16 Oct 2021 18:46:08 -0400 Subject: [PATCH] libgimpcolor: use g_debug for informational "using babl ..." messages We sometimes can get a lot of informational messages like: gimp_color_transform_new: using babl for 'sRGB IEC61966-2.1' -> 'GIMP built-in sRGB'. After discussion on IRC there is agreement to use g_debug for these instead of g_printerr. This way they can still be seen with GIMP_DEBUG=LibGimpColor, but won't clutter the console when looking at something else. Note that this only changes the informational message. All the error messages are left alone as g_printerr. --- libgimpcolor/gimpcolortransform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libgimpcolor/gimpcolortransform.c b/libgimpcolor/gimpcolortransform.c index 7826844401..0e9c91d666 100644 --- a/libgimpcolor/gimpcolortransform.c +++ b/libgimpcolor/gimpcolortransform.c @@ -238,10 +238,10 @@ gimp_color_transform_new (GimpColorProfile *src_profile, priv->fish = babl_fish (priv->src_format, priv->dest_format); - g_printerr ("%s: using babl for '%s' -> '%s'\n", - G_STRFUNC, - gimp_color_profile_get_label (src_profile), - gimp_color_profile_get_label (dest_profile)); + g_debug ("%s: using babl for '%s' -> '%s'", + G_STRFUNC, + gimp_color_profile_get_label (src_profile), + gimp_color_profile_get_label (dest_profile)); return transform; }