From: Howard Chu Date: Tue, 10 Feb 2009 11:16:31 +0000 (+0000) Subject: ITS#5392 use lutil_debug for Statslog if HAVE_DEBUG && !HAVE_SYSLOG X-Git-Tag: ACLCHECK_0~851 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6a838df2748b7301ed6d623fdc2c03d653611001;p=openldap ITS#5392 use lutil_debug for Statslog if HAVE_DEBUG && !HAVE_SYSLOG --- diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 2439156a48..be010c2212 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -2887,7 +2887,7 @@ struct Connection { #define Statslog( level, fmt, connid, opid, arg1, arg2, arg3 ) \ do { \ if ( ldap_debug & (level) ) \ - fprintf( stderr, (fmt), (connid), (opid), (arg1), (arg2), (arg3) );\ + lutil_debug( ldap_debug, (level), (fmt), (connid), (opid), (arg1), (arg2), (arg3) );\ } while (0) #define StatslogTest( level ) (ldap_debug & (level)) #endif /* !LDAP_SYSLOG */