[babl] babl: extend BABL_DEBUG_MISSING output
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] babl: extend BABL_DEBUG_MISSING output
- Date: Wed, 27 May 2020 02:47:21 +0000 (UTC)
commit 639c1844eaeab0f7210106915fb4a8c15139655a
Author: Øyvind Kolås <pippin gimp org>
Date: Sun May 24 20:01:54 2020 +0200
babl: extend BABL_DEBUG_MISSING output
Report lengths of all searched for fishes.
babl/babl-fish-path.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c
index 8c431d1db..b0396dbcb 100644
--- a/babl/babl-fish-path.c
+++ b/babl/babl-fish-path.c
@@ -597,6 +597,7 @@ babl_fish_path2 (const Babl *source,
babl->fish_path.cost = BABL_MAX_COST_VALUE;
babl->fish_path.conversion_list = babl_list_init_with_size (BABL_HARD_MAX_PATH_LENGTH);
+
{
PathContext pc;
int start_depth = max_path_length ();
@@ -624,10 +625,14 @@ babl_fish_path2 (const Babl *source,
if (debug_missing)
{
if (babl->fish_path.conversion_list->count == 0)
- fprintf (stderr, "babl: lacking conversion path for %s to %s\n",
+ fprintf (stderr, "babl: WARNING lacking conversion path for %s to %s\n",
babl_get_name (source), babl_get_name (destination));
else if (babl->fish_path.conversion_list->count == end_depth)
- fprintf (stderr, "babl: need %i step conversion for %s to %s\n", end_depth,
+ fprintf (stderr, "babl: WARNING need %i step conversion for %s to %s\n", end_depth,
+ babl_get_name (source), babl_get_name (destination));
+ else
+ fprintf (stderr, "babl: found %i step conversion for %s to %s\n",
+ babl->fish_path.conversion_list->count,
babl_get_name (source), babl_get_name (destination));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]