From: Joel Rosdahl Date: Tue, 8 Jun 2010 19:22:05 +0000 (+0200) Subject: Don't print stuff to stderr when exiting without error code X-Git-Tag: v3.0~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf8cc67ca77e7c31d14b4de5c45acf6ac015967d;p=thirdparty%2Fccache.git Don't print stuff to stderr when exiting without error code --- diff --git a/cleanup.c b/cleanup.c index c267de480..d0cb24c4f 100644 --- 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); }