]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/ldap-int.h
Fix extensible filters
[openldap] / libraries / libldap / ldap-int.h
index d042c1b29265bdbe10027b6c7bd491dcfcfead26..e8c7ab08bf34f923262ff36c0c4fb5d926e5659f 100644 (file)
@@ -61,7 +61,9 @@
 
 #undef Debug
 #define Debug( level, fmt, arg1, arg2, arg3 ) \
-       ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) )
+       do { if ( ldap_debug & level ) \
+       ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) ); \
+       } while ( 0 )
 
 #define LDAP_Debug( subsystem, level, fmt, arg1, arg2, arg3 )\
        ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) )