commit f74b4e0d1168037fbbd9ea80dfe6e3d215fa2401
Author: Oswald Buddenhagen <[email protected]>
Date: Wed Jun 1 11:57:50 2022 +0200
fix --debug-crash suppressing the progress display
there isn't really a reason for that; DEBUG_CRASH is quite unlike the
other DEBUG_ flags.
note that the DEBUG_*_ALL flags are not checked, because they always
come with their corresponding less verbose flag anyway.
src/common.h | 4 +++-
src/main.c | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/common.h b/src/common.h
index c840536a..83166f14 100644
--- a/src/common.h
+++ b/src/common.h
@@ -100,7 +100,6 @@ typedef unsigned long ulong;
#define DEBUG_MAIN 0x20
#define DEBUG_DRV 0x40
#define DEBUG_DRV_ALL 0x80
-#define DEBUG_ALL (0xFF & ~(DEBUG_NET_ALL | DEBUG_DRV_ALL))
#define QUIET 0x100
#define VERYQUIET 0x200
#define PROGRESS 0x400
@@ -109,6 +108,9 @@ typedef unsigned long ulong;
#define ZERODELAY 0x2000
#define FORCEASYNC 0x4000
+#define DEBUG_ANY (DEBUG_MAILDIR | DEBUG_NET | DEBUG_SYNC | DEBUG_MAIN |
DEBUG_DRV)
+#define DEBUG_ALL (DEBUG_ANY | DEBUG_CRASH)
+
extern int DFlags;
extern int JLimit;
extern int UseFSync;
diff --git a/src/main.c b/src/main.c
index 60623ece..f2a755fe 100644
--- a/src/main.c
+++ b/src/main.c
@@ -741,7 +741,7 @@ main( int argc, char **argv )
if (ms_warn)
warn( "Notice: -master/-slave/m/s suffixes are deprecated; use
-far/-near/f/n instead.\n" );
- if (!(DFlags & (QUIET | DEBUG_ALL)) && isatty( 1 ))
+ if (!(DFlags & (QUIET | DEBUG_ANY)) && isatty( 1 ))
DFlags |= PROGRESS;
#ifdef __linux__
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel