Diff for /include/ldap_log.h between versions 1.38 and 1.39

version 1.38, 2005/12/27 15:29:44 version 1.39, 2005/12/28 00:22:56
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/include/ldap_log.h,v 1.37 2005/12/22 21:33:32 ando Exp $ */  /* $OpenLDAP: pkg/ldap/include/ldap_log.h,v 1.38 2005/12/27 15:29:44 ando Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *    * 
  * Copyright 1998-2005 The OpenLDAP Foundation.   * Copyright 1998-2005 The OpenLDAP Foundation.
Line 148  extern void eb_syslog(int pri, const cha Line 148  extern void eb_syslog(int pri, const cha
   
 /* this doesn't below as part of ldap.h */  /* this doesn't below as part of ldap.h */
 #ifdef LDAP_SYSLOG  #ifdef LDAP_SYSLOG
   #define Log0( level, severity, fmt )    \
           do { \
                   if ( ldap_debug & (level) ) \
                           lutil_debug( ldap_debug, (level), (fmt) ); \
                   if ( ldap_syslog & (level) ) \
                           syslog( LDAP_LEVEL_MASK((severity)), (fmt) ); \
           } while ( 0 )
 #define Log1( level, severity, fmt, arg1 )      \  #define Log1( level, severity, fmt, arg1 )      \
         do { \          do { \
                 if ( ldap_debug & (level) ) \                  if ( ldap_debug & (level) ) \
Line 188  extern void eb_syslog(int pri, const cha Line 195  extern void eb_syslog(int pri, const cha
 #define LogTest(level) ( ( ldap_debug | ldap_syslog ) & (level) )  #define LogTest(level) ( ( ldap_debug | ldap_syslog ) & (level) )
   
 #else /* ! LDAP_SYSLOG */  #else /* ! LDAP_SYSLOG */
   #define Log0( level, severity, fmt ) \
           do { \
                   if ( ldap_debug & (level) ) \
                           lutil_debug( ldap_debug, (level), (fmt) ); \
           } while ( 0 )
 #define Log1( level, severity, fmt, arg1 ) \  #define Log1( level, severity, fmt, arg1 ) \
         do { \          do { \
                 if ( ldap_debug & (level) ) \                  if ( ldap_debug & (level) ) \
Line 220  extern void eb_syslog(int pri, const cha Line 232  extern void eb_syslog(int pri, const cha
 #else /* ! LDAP_DEBUG */  #else /* ! LDAP_DEBUG */
 /* TODO: in case LDAP_DEBUG is undefined, make sure logs with appropriate  /* TODO: in case LDAP_DEBUG is undefined, make sure logs with appropriate
  * severity gets thru anyway */   * severity gets thru anyway */
   #define Log0( level, severity, fmt )
 #define Log1( level, severity, fmt, arg1 )  #define Log1( level, severity, fmt, arg1 )
 #define Log2( level, severity, fmt, arg1, arg2 )  #define Log2( level, severity, fmt, arg1, arg2 )
 #define Log3( level, severity, fmt, arg1, arg2, arg3 )  #define Log3( level, severity, fmt, arg1, arg2, arg3 )

Removed from v.1.38  
changed lines
  Added in v.1.39


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