]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Improve logging related to hashing of the CWD
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 7 Jun 2018 19:48:42 +0000 (21:48 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 7 Jun 2018 19:48:42 +0000 (21:48 +0200)
src/ccache.c

index 4342183088e71daf12dc9a198ba678487671091e..848eecbb9d6db498aa1effaaa2bb9d1f521bffad 100644 (file)
@@ -1600,7 +1600,7 @@ calculate_common_hash(struct args *args, struct mdfour *hash)
                        if (sep) {
                                char *old = x_strndup(map, sep - map);
                                char *new = x_strdup(sep + 1);
-                               cc_log("Relocating debuginfo cwd %s, from %s to %s", cwd, old, new);
+                               cc_log("Relocating debuginfo CWD %s from %s to %s", cwd, old, new);
                                if (str_startswith(cwd, old)) {
                                        char *dir = format("%s%s", new, cwd + strlen(old));
                                        free(cwd);
@@ -1611,6 +1611,7 @@ calculate_common_hash(struct args *args, struct mdfour *hash)
                        }
                }
                if (cwd) {
+                       cc_log("Hashing CWD %s", cwd);
                        hash_delimiter(hash, "cwd");
                        hash_string(hash, cwd);
                        free(cwd);