Diff for /include/ldap_log.h between versions 1.27 and 1.30

version 1.27, 2002/07/11 18:33:24 version 1.30, 2003/06/06 11:56:18
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/include/ldap_log.h,v 1.26 2002/01/04 19:40:30 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/include/ldap_log.h,v 1.29 2003/01/03 19:20:50 kurt Exp $ */
 /*  /*
  * Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA   * Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA
  * All rights reserved.   * All rights reserved.
  *   *
  * Redistribution and use in source and binary forms, with or without   * Redistribution and use in source and binary forms, with or without
Line 95  LDAP_BEGIN_DECL Line 95  LDAP_BEGIN_DECL
 #define LDAP_DEBUG_CACHE    0x1000  #define LDAP_DEBUG_CACHE    0x1000
 #define LDAP_DEBUG_INDEX    0x2000  #define LDAP_DEBUG_INDEX    0x2000
   
 #define LDAP_DEBUG_DEPRECATED   0x1000  
 #define LDAP_DEBUG_NONE         0x8000  #define LDAP_DEBUG_NONE         0x8000
 #define LDAP_DEBUG_ANY          -1  #define LDAP_DEBUG_ANY          -1
   
Line 140  LDAP_BEGIN_DECL Line 139  LDAP_BEGIN_DECL
   
 #ifdef NEW_LOGGING  #ifdef NEW_LOGGING
 extern int ldap_loglevels[LDAP_SUBSYS_NUM];  extern int ldap_loglevels[LDAP_SUBSYS_NUM];
   
   #ifdef LDAP_DEBUG
   
 #define LDAP_LOG(a, b, fmt, arg1, arg2, arg3) do {\  #define LDAP_LOG(a, b, fmt, arg1, arg2, arg3) do {\
         if (ldap_loglevels[LDAP_SUBSYS_##a] >= LDAP_LEVEL_##b || \          if (ldap_loglevels[LDAP_SUBSYS_##a] >= LDAP_LEVEL_##b || \
                 ldap_loglevels[LDAP_SUBSYS_GLOBAL] >= LDAP_LEVEL_##b)\                  ldap_loglevels[LDAP_SUBSYS_GLOBAL] >= LDAP_LEVEL_##b)\
Line 151  extern int ldap_loglevels[LDAP_SUBSYS_NU Line 153  extern int ldap_loglevels[LDAP_SUBSYS_NU
         (ldap_loglevels[LDAP_SUBSYS_##a] >= LDAP_LEVEL_##b || \          (ldap_loglevels[LDAP_SUBSYS_##a] >= LDAP_LEVEL_##b || \
          ldap_loglevels[LDAP_SUBSYS_GLOBAL] >= LDAP_LEVEL_##b)           ldap_loglevels[LDAP_SUBSYS_GLOBAL] >= LDAP_LEVEL_##b)
   
 #endif /* LDAP_LOG */  #endif /* LDAP_DEBUG */
   
   #endif /* NEW_LOGGING */
   
 #ifndef LDAP_LOG  #ifndef LDAP_LOG
 #define LDAP_LOG(a, b, fmt, arg1, arg2, arg3)  #define LDAP_LOG(a, b, fmt, arg1, arg2, arg3)
   #define LDAP_LOGS_TEST(a, b) 0
 #endif  #endif
   
 LDAP_LUTIL_F(int) lutil_mnem2level LDAP_P(( const char *level ));  LDAP_LUTIL_F(int) lutil_mnem2level LDAP_P(( const char *level ));

Removed from v.1.27  
changed lines
  Added in v.1.30


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org