]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Don't print stuff to stderr when exiting without error code
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 8 Jun 2010 19:22:05 +0000 (21:22 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 8 Jun 2010 19:22:05 +0000 (21:22 +0200)
cleanup.c

index c267de480da862e00194bd7460f9cd5dac4cca87..d0cb24c4f5bb2476a1606b229f517f5e6f3e6d5a 100644 (file)
--- a/cleanup.c
+++ b/cleanup.c
@@ -132,8 +132,7 @@ static void delete_file(const char *path, size_t size)
                        total_object_size -= size;
                }
        } else if (errno != ENOENT) {
-               fprintf(stderr, "ccache: failed to unlink %s (%s)\n",
-                       path, strerror(errno));
+               cc_log("Failed to unlink %s (%s)", path, strerror(errno));
        }
 }
 
@@ -146,8 +145,7 @@ static void delete_sibling_file(const char *base, const char *extension)
        if (lstat(path, &st) == 0) {
                delete_file(path, file_size(&st) / 1024);
        } else if (errno != ENOENT) {
-               fprintf(stderr, "ccache: failed to stat %s (%s)\n",
-                       path, strerror(errno));
+               cc_log("Failed to stat %s (%s)", path, strerror(errno));
        }
        free(path);
 }