]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Log failure of opening file to hash
authorChiaki ISHIKAWA <ishikawa@yk.rim.or.jp>
Wed, 18 Mar 2015 15:34:48 +0000 (00:34 +0900)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 18 Mar 2015 18:59:39 +0000 (19:59 +0100)
hash.c

diff --git a/hash.c b/hash.c
index 80beed23aebf6bcdd9f94b0a7dd5ee9103302f89..7950737890f99744d4352353256932c6b72ecd5a 100644 (file)
--- a/hash.c
+++ b/hash.c
@@ -128,6 +128,7 @@ hash_file(struct mdfour *md, const char *fname)
 
        fd = open(fname, O_RDONLY|O_BINARY);
        if (fd == -1) {
+               cc_log("Failed to open %s: %s", fname, strerror(errno));
                return false;
        }