Improve verbose messages from fc-cache.

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.
This commit is contained in:
Keith Packard 2007-10-18 04:58:31 -07:00
parent e12f718f65
commit 50124d1e48
1 changed files with 2 additions and 2 deletions

View File

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