]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
win32: Add a space between filename and error string in x_fmmap()
authorRamiro <ramiro.polla@gmail.com>
Mon, 19 Jul 2010 22:15:38 +0000 (19:15 -0300)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 20 Jul 2010 21:39:12 +0000 (23:39 +0200)
util.c

diff --git a/util.c b/util.c
index 34acbc5ab12d59414a34666c2c2ea48faa0677f8..e9946eaa5a441ce0ba6bac58963149d9fc4d0827 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1049,24 +1049,24 @@ void *x_fmmap(const char *fname, off_t *size, const char *errstr)
        file = CreateFile(fname, GENERIC_READ, FILE_SHARE_READ, NULL,
                          OPEN_EXISTING, 0, NULL);
        if (file == INVALID_HANDLE_VALUE) {
-               cc_log("Failed to open %s%s", errstr, fname);
+               cc_log("Failed to open %s %s", errstr, fname);
                goto error;
        }
        fd = _open_osfhandle((intptr_t) file, O_RDONLY | O_BINARY);
        if (fd == -1) {
-               cc_log("Failed to open %s%s", errstr, fname);
+               cc_log("Failed to open %s %s", errstr, fname);
                CloseHandle(file);
                goto error;
        }
        if (fstat(fd, &st) == -1) {
-               cc_log("Failed to fstat %s%s", errstr, fname);
+               cc_log("Failed to fstat %s %s", errstr, fname);
                CloseHandle(file);
                goto error;
        }
        section = CreateFileMapping(file, NULL, PAGE_READONLY, 0, 0, NULL);
        CloseHandle(file);
        if (!section) {
-               cc_log("Failed to mmap %s%s", errstr, fname);
+               cc_log("Failed to mmap %s %s", errstr, fname);
                goto error;
        }
        data = MapViewOfFile(section, FILE_MAP_READ, 0, 0, 0);