]> git.wh0rd.org - fontconfig.git/commitdiff
Improve verbose messages from fc-cache.
authorKeith Packard <keithp@koto.keithp.com>
Thu, 18 Oct 2007 11:58:31 +0000 (04:58 -0700)
committerKeith Packard <keithp@koto.keithp.com>
Thu, 18 Oct 2007 11:58:31 +0000 (04:58 -0700)
fc-cache would say 'skipping: %d fonts, %d dirs' or 'caching: %d fonts, %d
dirs', which could easily mislead the user. Add 'existing cache is valid' or
'new cache contents' to these messages to explain what it is doing.

fc-cache/fc-cache.c

index 0415b54762268222f1acbe6e66336ace1e708a4a..7de952d677a617b182743a3059a77d28a1538638 100644 (file)
@@ -201,13 +201,13 @@ scanDirs (FcStrList *list, FcConfig *config, FcBool force, FcBool really_force,
        if (was_valid)
        {
            if (verbose)
-               printf ("skipping, %d fonts, %d dirs\n",
+               printf ("skipping, existing cache is valid: %d fonts, %d dirs\n",
                        FcCacheNumFont (cache), FcCacheNumSubdir (cache));
        }
        else
        {
            if (verbose)
-               printf ("caching, %d fonts, %d dirs\n", 
+               printf ("caching, new cache contents: %d fonts, %d dirs\n", 
                        FcCacheNumFont (cache), FcCacheNumSubdir (cache));
 
            if (!FcDirCacheValid (dir))