From cf8cc67ca77e7c31d14b4de5c45acf6ac015967d Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Tue, 8 Jun 2010 21:22:05 +0200 Subject: [PATCH] Don't print stuff to stderr when exiting without error code --- cleanup.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); } -- 2.47.3