From: Wayne Davison Date: Sat, 6 Sep 2014 17:47:13 +0000 (-0700) Subject: Mention DRY RUN in --debug=exit output. X-Git-Tag: v3.1.2pre1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a955e93316e81bdb5a48a059ec4ce4e592dc6682;p=thirdparty%2Frsync.git Mention DRY RUN in --debug=exit output. --- diff --git a/cleanup.c b/cleanup.c index cd023aaf..03c7646f 100644 --- a/cleanup.c +++ b/cleanup.c @@ -22,6 +22,7 @@ #include "rsync.h" +extern int dry_run; extern int am_server; extern int am_daemon; extern int am_receiver; @@ -232,8 +233,9 @@ NORETURN void _exit_cleanup(int code, const char *file, int line) if (DEBUG_GTE(EXIT, 1)) { rprintf(FINFO, "[%s] _exit_cleanup(code=%d, file=%s, line=%d): " - "about to call exit(%d)\n", - who_am_i(), first_code, exit_file, exit_line, exit_code); + "about to call exit(%d)%s\n", + who_am_i(), first_code, exit_file, exit_line, exit_code, + dry_run ? " (DRY RUN)" : ""); } /* FALLTHROUGH */