From a299e74d2155a1a660db00ca7eb184b4e98edd1a Mon Sep 17 00:00:00 2001 From: Julius Enarusai Date: Wed, 27 Mar 2002 19:37:50 +0000 Subject: [PATCH] Added LDAP_LOG messages --- libraries/libldap/extended.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/libraries/libldap/extended.c b/libraries/libldap/extended.c index 147d16af7a..58bffe8620 100644 --- a/libraries/libldap/extended.c +++ b/libraries/libldap/extended.c @@ -43,7 +43,11 @@ ldap_extended_operation( BerElement *ber; int rc; +#ifdef NEW_LOGGING + LDAP_LOG (( "extended", LDAP_LEVEL_ENTRY, "ldap_extended_operation\n" )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_extended_operation\n", 0, 0, 0 ); +#endif assert( ld != NULL ); assert( LDAP_VALID( ld ) ); @@ -117,7 +121,11 @@ ldap_extended_operation_s( int msgid; LDAPMessage *res; +#ifdef NEW_LOGGING + LDAP_LOG (( "extended", LDAP_LEVEL_ENTRY, "ldap_extended_operation_s\n" )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_extended_operation_s\n", 0, 0, 0 ); +#endif assert( ld != NULL ); assert( LDAP_VALID( ld ) ); @@ -174,7 +182,11 @@ ldap_parse_extended_result ( assert( LDAP_VALID( ld ) ); assert( res != NULL ); +#ifdef NEW_LOGGING + LDAP_LOG (( "extended", LDAP_LEVEL_ENTRY, "ldap_parse_extended_result\n" )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_parse_extended_result\n", 0, 0, 0 ); +#endif if( ld->ld_version < LDAP_VERSION3 ) { ld->ld_errno = LDAP_NOT_SUPPORTED; @@ -297,7 +309,12 @@ ldap_parse_extended_partial ( assert( LDAP_VALID( ld ) ); assert( res != NULL ); - Debug( LDAP_DEBUG_TRACE, "ldap_parse_extended_result\n", 0, 0, 0 ); +#ifdef NEW_LOGGING + LDAP_LOG (( "extended", LDAP_LEVEL_ENTRY, + "ldap_parse_extended_partial\n" )); +#else + Debug( LDAP_DEBUG_TRACE, "ldap_parse_extended_partial\n", 0, 0, 0 ); +#endif if( ld->ld_version < LDAP_VERSION3 ) { ld->ld_errno = LDAP_NOT_SUPPORTED; -- 2.39.5