From 3654b0d4c0d03f925a7ad85bf9eb97bff61ba160 Mon Sep 17 00:00:00 2001 From: Julius Enarusai Date: Wed, 27 Mar 2002 19:51:13 +0000 Subject: [PATCH] Added LDAP_LOG messages --- libraries/libldap/getfilter.c | 6 ++++++ libraries/libldap/getvalues.c | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/libraries/libldap/getfilter.c b/libraries/libldap/getfilter.c index fcd27166bf..d6f62f3255 100644 --- a/libraries/libldap/getfilter.c +++ b/libraries/libldap/getfilter.c @@ -78,9 +78,15 @@ ldap_init_getfilter_buf( char *buf, ber_len_t buflen ) char error[512]; regerror(rc, &re, error, sizeof(error)); ldap_getfilter_free( lfdp ); +#ifdef NEW_LOGGING + LDAP_LOG (( "getfilter", LDAP_LEVEL_ERR, + "ldap_init_get_filter_buf: bad regular expression %s, %s\n", + nextflp->lfl_pattern, error )); +#else Debug( LDAP_DEBUG_ANY, "ldap_init_get_filter_buf: " "bad regular expression %s, %s\n", nextflp->lfl_pattern, error, 0 ); +#endif errno = EINVAL; LDAP_VFREE( tok ); return( NULL ); diff --git a/libraries/libldap/getvalues.c b/libraries/libldap/getvalues.c index 954397e9d1..bbf16d8c41 100644 --- a/libraries/libldap/getvalues.c +++ b/libraries/libldap/getvalues.c @@ -36,7 +36,11 @@ ldap_get_values( LDAP *ld, LDAPMessage *entry, LDAP_CONST char *target ) assert( entry != NULL ); assert( target != NULL ); +#ifdef NEW_LOGGING + LDAP_LOG (( "getvalues", LDAP_LEVEL_ENTRY, "ldap_get_values\n" )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_get_values\n", 0, 0, 0 ); +#endif ber = *entry->lm_ber; @@ -93,7 +97,11 @@ ldap_get_values_len( LDAP *ld, LDAPMessage *entry, LDAP_CONST char *target ) assert( entry != NULL ); assert( target != NULL ); +#ifdef NEW_LOGGING + LDAP_LOG (( "getvalues", LDAP_LEVEL_ENTRY, "ldap_get_values_len\n" )); +#else Debug( LDAP_DEBUG_TRACE, "ldap_get_values_len\n", 0, 0, 0 ); +#endif ber = *entry->lm_ber; -- 2.39.5