From 50124d1e484b84796abb7d8a6c1995edaff23e80 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 18 Oct 2007 04:58:31 -0700 Subject: [PATCH] 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. --- fc-cache/fc-cache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c index 0415b54..7de952d 100644 --- a/fc-cache/fc-cache.c +++ b/fc-cache/fc-cache.c @@ -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)) -- 2.39.5