diff options
Diffstat (limited to 'source3/lib/debug.c')
-rw-r--r-- | source3/lib/debug.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/lib/debug.c b/source3/lib/debug.c index 83a470872a..2efdd3c2a3 100644 --- a/source3/lib/debug.c +++ b/source3/lib/debug.c @@ -625,7 +625,7 @@ BOOL need_to_check_log_size( void ) { int maxlog; - if( debug_count < 100 ) + if( debug_count++ < 100 ) return( False ); maxlog = lp_max_log_size() * 1024; @@ -710,8 +710,6 @@ void check_log_size( void ) va_list ap; int old_errno = errno; - debug_count++; - if( stdout_logging ) { va_start( ap, format_str ); |