From: Joel Rosdahl Date: Sun, 28 Feb 2010 15:25:44 +0000 (+0100) Subject: Improve error message when failing to unlink a file to clean up X-Git-Tag: v3.0pre0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f190feebf1643024557eec35dca550af8e9b46f;p=thirdparty%2Fccache.git Improve error message when failing to unlink a file to clean up --- diff --git a/cleanup.c b/cleanup.c index af6e9137e..3af734483 100644 --- a/cleanup.c +++ b/cleanup.c @@ -150,7 +150,7 @@ static void sort_and_clean(void) } if (unlink(files[i]->fname) != 0 && errno != ENOENT) { - fprintf(stderr, "unlink %s - %s\n", + fprintf(stderr, "ccache: failed to unlink %s (%s)\n", files[i]->fname, strerror(errno)); continue; }