From: Øyvind Kolås Date: Sun, 24 May 2020 18:01:54 +0000 (+0200) Subject: babl: extend BABL_DEBUG_MISSING output X-Git-Tag: archive/raspbian/1%0.1.106-3+rpi1^2~15^2~9^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=639c1844eaeab0f7210106915fb4a8c15139655a;p=babl.git babl: extend BABL_DEBUG_MISSING output Report lengths of all searched for fishes. --- diff --git a/babl/babl-fish-path.c b/babl/babl-fish-path.c index 8c431d1..b0396db 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)); }