Mention file & line on OOM and overflow errors.
[rsync.git] / log.c
diff --git a/log.c b/log.c
index 633bcdbce261933fd46993d60b502e313711161a..85eae3d5ff383a2b3f29c927c5d2d7a0fbaac42a 100644 (file)
--- a/log.c
+++ b/log.c
@@ -890,10 +890,10 @@ void log_exit(int code, const char *file, int line)
                /* VANISHED is not an error, only a warning */
                if (code == RERR_VANISHED) {
                        rprintf(FWARNING, "rsync warning: %s (code %d) at %s(%d) [%s=%s]\n",
-                               name, code, file, line, who_am_i(), RSYNC_VERSION);
+                               name, code, src_file(file), line, who_am_i(), RSYNC_VERSION);
                } else {
                        rprintf(FERROR, "rsync error: %s (code %d) at %s(%d) [%s=%s]\n",
-                               name, code, file, line, who_am_i(), RSYNC_VERSION);
+                               name, code, src_file(file), line, who_am_i(), RSYNC_VERSION);
                }
        }
 }