From: Chiaki ISHIKAWA Date: Wed, 18 Mar 2015 15:34:48 +0000 (+0900) Subject: Log failure of opening file to hash X-Git-Tag: v3.2.2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=655b9bb897deba20b97441e73dd4306891262223;p=thirdparty%2Fccache.git Log failure of opening file to hash --- diff --git a/hash.c b/hash.c index 80beed23a..795073789 100644 --- 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; }