Include the version number when we exit with an error or warning.
authorWayne Davison <wayned@samba.org>
Tue, 28 Mar 2006 18:23:24 +0000 (18:23 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 28 Mar 2006 18:23:24 +0000 (18:23 +0000)
log.c

diff --git a/log.c b/log.c
index 034aacc..135a57a 100644 (file)
--- a/log.c
+++ b/log.c
@@ -769,11 +769,11 @@ void log_exit(int code, const char *file, int line)
 
                /* VANISHED is not an error, only a warning */
                if (code == RERR_VANISHED) {
-                       rprintf(FINFO, "rsync warning: %s (code %d) at %s(%d) [%s]\n", 
-                               name, code, file, line, who_am_i());
+                       rprintf(FINFO, "rsync warning: %s (code %d) at %s(%d) [%s=%s]\n", 
+                               name, code, file, line, who_am_i(), RSYNC_VERSION);
                } else {
-                       rprintf(FERROR, "rsync error: %s (code %d) at %s(%d) [%s]\n",
-                               name, code, file, line, who_am_i());
+                       rprintf(FERROR, "rsync error: %s (code %d) at %s(%d) [%s=%s]\n",
+                               name, code, file, line, who_am_i(), RSYNC_VERSION);
                }
        }
 }