]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Only log "Disabling direct mode" once when failing to read include file
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 5 Jul 2015 16:09:05 +0000 (18:09 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 5 Jul 2015 16:09:05 +0000 (18:09 +0200)
NEWS.txt
ccache.c

index c1e121d91dd5291ad2b4a31bc0fef3e4bba28029..286e951b55042de4a38ac7c7ca663c24a8fd2447 100644 (file)
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -18,6 +18,9 @@ Bug fixes
 
 - Avoid calling `exit()` inside an exit handler.
 
+- Only log "Disabling direct mode" once when failing to read potential include
+  files.
+
 
 ccache 3.2.2
 ------------
index 560cbafe9a53b2fb04f7ca7470a7170f6905f495..c47e765e40ec371a4b39dffb0cd92f3184c6e86d 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -535,8 +535,10 @@ remember_include_file(char *path, struct mdfour *cpp_hash)
        return;
 
 failure:
-       cc_log("Disabling direct mode");
-       conf->direct_mode = false;
+       if (conf->direct_mode) {
+               cc_log("Disabling direct mode");
+               conf->direct_mode = false;
+       }
        /* Fall through. */
 ignore:
        free(path);