]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Improve debug log filenames
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 2 Oct 2018 18:15:32 +0000 (20:15 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 2 Oct 2018 18:19:10 +0000 (20:19 +0200)
The “<objectfile>.ccache-hashX” files are also input data, so I think
that calling the “human-readable” version “<objectfile>.ccache-input” a
bit unpedagogical. Changes:

<objectfile>.ccache-hashX -> <objectfile>.ccache-input-X
<objectfile>.ccache-input -> <objectfile>.ccache-input-text

src/ccache.c

index 93558be1b8c780a79d0c9049a241b520d963980b..935eef4b13cbf94c33e879b983ecbfa337914dc3 100644 (file)
@@ -479,8 +479,8 @@ clean_up_internal_tempdir(void)
 static void
 debug_start(const char *path)
 {
-       char *hash_bin = format("%s%s", path, ".ccache-hashX");
-       char *hash_txt = format("%s%s", path, ".ccache-input");
+       char *hash_bin = format("%s%s", path, ".ccache-input-X");
+       char *hash_txt = format("%s%s", path, ".ccache-input-text");
        hash_debug_init(hash_bin, hash_txt);
        free(hash_bin);
        free(hash_txt);