]> git.wh0rd.org - fontconfig.git/commitdiff
Make missing font directory messages only displayed when verbose
authorKeith Packard <keithp@keithp.com>
Tue, 13 Aug 2002 02:06:22 +0000 (02:06 +0000)
committerKeith Packard <keithp@keithp.com>
Tue, 13 Aug 2002 02:06:22 +0000 (02:06 +0000)
fc-cache/fc-cache.c

index 4ce612f86f105da83801cc685accfa4882cac627..00cf7fde4fb77004b4349ed0e98867a3153d66ab 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $XFree86: xc/lib/fontconfig/fc-cache/fc-cache.c,v 1.6 2002/07/01 05:11:20 keithp Exp $
+ * $XFree86: xc/lib/fontconfig/fc-cache/fc-cache.c,v 1.7 2002/08/11 15:09:33 keithp Exp $
  *
  * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
  *
@@ -132,7 +132,8 @@ scanDirs (FcStrList *list, FcConfig *config, char *program, FcBool force, FcBool
        {
            if (errno == ENOENT || errno == ENOTDIR)
            {
-               fprintf (stderr, "\"%s\": no such directory, skipping\n", dir);
+               if (verbose)
+                   printf ("no such directory, skipping\n");
            }
            else
            {