version 1.64.2.4, 2002/06/05 20:08:13
|
version 1.64.2.5, 2002/07/28 19:10:47
|
Line 1
|
Line 1
|
/* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.64.2.3 2002/05/22 14:25:45 kurt Exp $ */ |
/* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.64.2.4 2002/06/05 20:08:13 kurt Exp $ */ |
/* |
/* |
* Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. |
* Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. |
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file |
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file |
Line 53
|
Line 53
|
#include <ac/unistd.h> |
#include <ac/unistd.h> |
|
|
#include "ldap-int.h" |
#include "ldap-int.h" |
|
#include "ldap_log.h" |
|
|
static int ldap_abandoned LDAP_P(( LDAP *ld, ber_int_t msgid )); |
static int ldap_abandoned LDAP_P(( LDAP *ld, ber_int_t msgid )); |
static int ldap_mark_abandoned LDAP_P(( LDAP *ld, ber_int_t msgid )); |
static int ldap_mark_abandoned LDAP_P(( LDAP *ld, ber_int_t msgid )); |
Line 98 ldap_result(
|
Line 98 ldap_result(
|
assert( result != NULL ); |
assert( result != NULL ); |
|
|
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_ARGS, "ldap_result msgid %d\n", msgid )); |
LDAP_LOG ( OPERATION, ARGS, "ldap_result msgid %d\n", msgid, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, "ldap_result msgid %d\n", msgid, 0, 0 ); |
Debug( LDAP_DEBUG_TRACE, "ldap_result msgid %d\n", msgid, 0, 0 ); |
#endif |
#endif |
Line 129 chkResponseList(
|
Line 129 chkResponseList(
|
*/ |
*/ |
|
|
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_ARGS, |
LDAP_LOG ( OPERATION, ARGS, "ldap_chkResponseList for msgid=%d, all=%d\n", |
"ldap_chkResponseList for msgid=%d, all=%d\n", msgid, all )); |
msgid, all, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, |
Debug( LDAP_DEBUG_TRACE, |
"ldap_chkResponseList for msgid=%d, all=%d\n", |
"ldap_chkResponseList for msgid=%d, all=%d\n", |
Line 142 chkResponseList(
|
Line 142 chkResponseList(
|
|
|
if ( ldap_abandoned( ld, lm->lm_msgid ) ) { |
if ( ldap_abandoned( ld, lm->lm_msgid ) ) { |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, |
"ldap_chkResponseList msg abandoned, msgid %d\n", msgid )); |
"ldap_chkResponseList msg abandoned, msgid %d\n", msgid, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, |
Debug( LDAP_DEBUG_TRACE, |
"ldap_chkResponseList msg abandoned, msgid %d\n", |
"ldap_chkResponseList msg abandoned, msgid %d\n", |
Line 207 chkResponseList(
|
Line 207 chkResponseList(
|
#ifdef LDAP_DEBUG |
#ifdef LDAP_DEBUG |
if( lm == NULL) { |
if( lm == NULL) { |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_RESULTS, |
LDAP_LOG ( OPERATION, RESULTS, "ldap_chkResponseList returns NULL\n", |
"ldap_chkResponseList returns NULL\n" )); |
0, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, |
Debug( LDAP_DEBUG_TRACE, |
"ldap_chkResponseList returns NULL\n", 0, 0, 0); |
"ldap_chkResponseList returns NULL\n", 0, 0, 0); |
#endif |
#endif |
} else { |
} else { |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_RESULTS, |
LDAP_LOG ( OPERATION, RESULTS, |
"ldap_chkResponseList returns msgid %d, type 0x02lu\n", |
"ldap_chkResponseList returns msgid %d, type 0x%02lu\n", |
lm->lm_msgid, (unsigned long) lm->lm_msgtype )); |
lm->lm_msgid, (unsigned long) lm->lm_msgtype, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, |
Debug( LDAP_DEBUG_TRACE, |
"ldap_chkResponseList returns msgid %d, type 0x%02lu\n", |
"ldap_chkResponseList returns msgid %d, type 0x%02lu\n", |
Line 248 wait4msg(
|
Line 248 wait4msg(
|
#ifdef LDAP_DEBUG |
#ifdef LDAP_DEBUG |
if ( timeout == NULL ) { |
if ( timeout == NULL ) { |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_ARGS, |
LDAP_LOG ( OPERATION, ARGS, |
"wait4msg (infinite timeout), msgid %d\n", msgid )); |
"wait4msg (infinite timeout), msgid %d\n", msgid, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, "wait4msg (infinite timeout), msgid %d\n", |
Debug( LDAP_DEBUG_TRACE, "wait4msg (infinite timeout), msgid %d\n", |
msgid, 0, 0 ); |
msgid, 0, 0 ); |
#endif |
#endif |
} else { |
} else { |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_ARGS, |
LDAP_LOG ( OPERATION, ARGS, |
"wait4msg (timeout %ld sec, %ld usec), msgid %d\n", |
"wait4msg (timeout %ld sec, %ld usec), msgid %d\n", |
(long) timeout->tv_sec, (long) timeout->tv_usec, msgid )); |
(long) timeout->tv_sec, (long) timeout->tv_usec, msgid ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, "wait4msg (timeout %ld sec, %ld usec), msgid %d\n", |
Debug( LDAP_DEBUG_TRACE, "wait4msg (timeout %ld sec, %ld usec), msgid %d\n", |
(long) timeout->tv_sec, (long) timeout->tv_usec, msgid ); |
(long) timeout->tv_sec, (long) timeout->tv_usec, msgid ); |
Line 278 wait4msg(
|
Line 278 wait4msg(
|
while ( rc == -2 ) { |
while ( rc == -2 ) { |
#ifdef LDAP_DEBUG |
#ifdef LDAP_DEBUG |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_ARGS, |
LDAP_LOG ( OPERATION, ARGS, |
"wait4msg continue, msgid %d, all %d\n", msgid, all )); |
"wait4msg continue, msgid %d, all %d\n", msgid, all, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, "wait4msg continue, msgid %d, all %d\n", |
Debug( LDAP_DEBUG_TRACE, "wait4msg continue, msgid %d, all %d\n", |
msgid, all, 0 ); |
msgid, all, 0 ); |
Line 310 wait4msg(
|
Line 310 wait4msg(
|
#ifdef LDAP_DEBUG |
#ifdef LDAP_DEBUG |
if ( rc == -1 ) { |
if ( rc == -1 ) { |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_ARGS, |
LDAP_LOG ( OPERATION, ARGS, |
"wait4msg: ldap_int_select returned -1: errno %d\n", |
"wait4msg: ldap_int_select returned -1: errno %d\n", |
errno )); |
errno, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, |
Debug( LDAP_DEBUG_TRACE, |
"ldap_int_select returned -1: errno %d\n", |
"ldap_int_select returned -1: errno %d\n", |
Line 358 wait4msg(
|
Line 358 wait4msg(
|
} |
} |
|
|
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, |
"wait4msg: %ld secs to go\n", (long) tv.tv_sec )); |
"wait4msg: %ld secs to go\n", (long) tv.tv_sec, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, "wait4msg: %ld secs to go\n", |
Debug( LDAP_DEBUG_TRACE, "wait4msg: %ld secs to go\n", |
(long) tv.tv_sec, 0, 0 ); |
(long) tv.tv_sec, 0, 0 ); |
Line 401 try_read1msg(
|
Line 401 try_read1msg(
|
assert( lc != NULL ); |
assert( lc != NULL ); |
|
|
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_ARGS, "read1msg: msgid %d, all %d\n", |
LDAP_LOG ( OPERATION, ARGS, "read1msg: msgid %d, all %d\n", msgid, all, 0 ); |
msgid, all )); |
|
#else |
#else |
Debug( LDAP_DEBUG_TRACE, "read1msg: msgid %d, all %d\n", msgid, all, 0 ); |
Debug( LDAP_DEBUG_TRACE, "read1msg: msgid %d, all %d\n", msgid, all, 0 ); |
#endif |
#endif |
Line 431 try_read1msg(
|
Line 430 try_read1msg(
|
if ( tag == LBER_DEFAULT) { |
if ( tag == LBER_DEFAULT) { |
#ifdef LDAP_DEBUG |
#ifdef LDAP_DEBUG |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, |
"read1msg: ber_get_next failed\n" )); |
"read1msg: ber_get_next failed\n", 0, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_CONNS, |
Debug( LDAP_DEBUG_CONNS, |
"ber_get_next failed.\n", 0, 0, 0 ); |
"ber_get_next failed.\n", 0, 0, 0 ); |
Line 468 try_read1msg(
|
Line 467 try_read1msg(
|
if ( ldap_abandoned( ld, id ) ) { |
if ( ldap_abandoned( ld, id ) ) { |
ber_free( ber, 1 ); |
ber_free( ber, 1 ); |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, "read1msg: abandoned\n", 0, 0, 0 ); |
"read1msg: abandoned\n" )); |
|
#else |
#else |
Debug( LDAP_DEBUG_ANY, "abandoned\n", 0, 0, 0); |
Debug( LDAP_DEBUG_ANY, "abandoned\n", 0, 0, 0); |
#endif |
#endif |
Line 478 try_read1msg(
|
Line 476 try_read1msg(
|
|
|
if (( lr = ldap_find_request_by_msgid( ld, id )) == NULL ) { |
if (( lr = ldap_find_request_by_msgid( ld, id )) == NULL ) { |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, |
"read1msg: no request for response with msgid %ld (tossing)\n", |
"read1msg: no request for response with msgid %ld (tossing)\n", |
(long) id )); |
(long) id, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_ANY, |
Debug( LDAP_DEBUG_ANY, |
"no request for response with msgid %ld (tossing)\n", |
"no request for response with msgid %ld (tossing)\n", |
Line 503 try_read1msg(
|
Line 501 try_read1msg(
|
} |
} |
|
|
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, |
"read1msg: ldap_read: message type %s msgid %ld, original id %ld\n", |
"read1msg: ldap_read: message type %s msgid %ld, original id %ld\n", |
ldap_int_msgtype2str( tag ), |
ldap_int_msgtype2str( tag ), |
(long) lr->lr_msgid, (long) lr->lr_origid )); |
(long) lr->lr_msgid, (long) lr->lr_origid ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, |
Debug( LDAP_DEBUG_TRACE, |
"ldap_read: message type %s msgid %ld, original id %ld\n", |
"ldap_read: message type %s msgid %ld, original id %ld\n", |
Line 548 try_read1msg(
|
Line 546 try_read1msg(
|
if( lr->lr_status != LDAP_REQST_COMPLETED) { |
if( lr->lr_status != LDAP_REQST_COMPLETED) { |
lr->lr_status = LDAP_REQST_CHASINGREFS; |
lr->lr_status = LDAP_REQST_CHASINGREFS; |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, |
"read1msg: search ref chased," |
"read1msg: search ref chased," |
"mark request chasing refs, id = %d\n", |
"mark request chasing refs, id = %d\n", |
lr->lr_msgid )); |
lr->lr_msgid, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, |
Debug( LDAP_DEBUG_TRACE, |
"read1msg: search ref chased, mark request chasing refs, id = %d\n", |
"read1msg: search ref chased, mark request chasing refs, id = %d\n", |
Line 581 try_read1msg(
|
Line 579 try_read1msg(
|
rc = LDAP_DECODING_ERROR; |
rc = LDAP_DECODING_ERROR; |
lr->lr_status = LDAP_REQST_COMPLETED; |
lr->lr_status = LDAP_REQST_COMPLETED; |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, |
"read1msg: referral decode error," |
"read1msg: referral decode error," |
"mark request completed, id = %d\n", |
"mark request completed, id = %d\n", |
lr->lr_msgid )); |
lr->lr_msgid, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, |
Debug( LDAP_DEBUG_TRACE, |
"read1msg: referral decode error, mark request completed, id = %d\n", |
"read1msg: referral decode error, mark request completed, id = %d\n", |
Line 598 try_read1msg(
|
Line 596 try_read1msg(
|
0, &lr->lr_res_error, &hadref ); |
0, &lr->lr_res_error, &hadref ); |
lr->lr_status = LDAP_REQST_COMPLETED; |
lr->lr_status = LDAP_REQST_COMPLETED; |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, |
"read1msg: referral chased," |
"read1msg: referral chased," |
"mark request completed, id = %d\n", |
"mark request completed, id = %d\n", |
lr->lr_msgid )); |
lr->lr_msgid, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, |
Debug( LDAP_DEBUG_TRACE, |
"read1msg: referral chased, mark request completed, id = %d\n", |
"read1msg: referral chased, mark request completed, id = %d\n", |
Line 654 try_read1msg(
|
Line 652 try_read1msg(
|
&lr->lr_res_error, -1, &hadref ); |
&lr->lr_res_error, -1, &hadref ); |
lr->lr_status = LDAP_REQST_COMPLETED; |
lr->lr_status = LDAP_REQST_COMPLETED; |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, |
"read1msg: V2 referral chased," |
"read1msg: V2 referral chased," |
"mark request completed, id = %d\n", |
"mark request completed, id = %d\n", |
lr->lr_msgid )); |
lr->lr_msgid, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, |
Debug( LDAP_DEBUG_TRACE, |
"read1msg: V2 referral chased, mark request completed, id = %d\n", lr->lr_msgid, 0, 0); |
"read1msg: V2 referral chased, mark request completed, id = %d\n", lr->lr_msgid, 0, 0); |
Line 675 try_read1msg(
|
Line 673 try_read1msg(
|
lr->lr_res_errno = LDAP_PARTIAL_RESULTS; |
lr->lr_res_errno = LDAP_PARTIAL_RESULTS; |
} |
} |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, |
"read1msg: new result: res_errno: %d, res_error: <%s>, res_matched: <%s>\n", |
"read1msg: new result: res_errno: %d, res_error: <%s>, res_matched: <%s>\n", |
lr->lr_res_errno, lr->lr_res_error ? lr->lr_res_error : "", |
lr->lr_res_errno, lr->lr_res_error ? lr->lr_res_error : "", |
lr->lr_res_matched ? lr->lr_res_matched : "" )); |
lr->lr_res_matched ? lr->lr_res_matched : "" ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, |
Debug( LDAP_DEBUG_TRACE, |
"new result: res_errno: %d, res_error: <%s>, res_matched: <%s>\n", |
"new result: res_errno: %d, res_error: <%s>, res_matched: <%s>\n", |
Line 689 Debug( LDAP_DEBUG_TRACE,
|
Line 687 Debug( LDAP_DEBUG_TRACE,
|
} |
} |
|
|
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, "read1msg: %d new referrals\n", |
"read1msg: %d new referrals\n", refer_cnt )); |
refer_cnt, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, |
Debug( LDAP_DEBUG_TRACE, |
"read1msg: %d new referrals\n", refer_cnt, 0, 0 ); |
"read1msg: %d new referrals\n", refer_cnt, 0, 0 ); |
Line 715 Debug( LDAP_DEBUG_TRACE,
|
Line 713 Debug( LDAP_DEBUG_TRACE,
|
|
|
lr->lr_status = LDAP_REQST_COMPLETED; /* declare this request done */ |
lr->lr_status = LDAP_REQST_COMPLETED; /* declare this request done */ |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, |
"read1msg: mark request completed, id = %d\n", lr->lr_msgid )); |
"read1msg: mark request completed, id = %d\n", |
|
lr->lr_msgid, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, |
Debug( LDAP_DEBUG_TRACE, |
"read1msg: mark request completed, id = %d\n", lr->lr_msgid, 0, 0); |
"read1msg: mark request completed, id = %d\n", lr->lr_msgid, 0, 0); |
Line 745 Debug( LDAP_DEBUG_TRACE,
|
Line 744 Debug( LDAP_DEBUG_TRACE,
|
id = lr->lr_msgid; |
id = lr->lr_msgid; |
tag = lr->lr_res_msgtype; |
tag = lr->lr_res_msgtype; |
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, |
"read1msg: request %ld done\n", (long) id )); |
"read1msg: request %ld done\n", (long) id, 0, 0 ); |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, |
"read1msg: res_errno: %d,res_error: <%s>, res_matched: <%s>\n", |
"read1msg: res_errno: %d,res_error: <%s>, res_matched: <%s>\n", |
lr->lr_res_errno, lr->lr_res_error ? lr->lr_res_error : "", |
lr->lr_res_errno, lr->lr_res_error ? lr->lr_res_error : "", |
lr->lr_res_matched ? lr->lr_res_matched : "" )); |
lr->lr_res_matched ? lr->lr_res_matched : "" ); |
#else |
#else |
Debug( LDAP_DEBUG_ANY, "request %ld done\n", |
Debug( LDAP_DEBUG_ANY, "request %ld done\n", |
(long) id, 0, 0 ); |
(long) id, 0, 0 ); |
Line 838 lr->lr_res_matched ? lr->lr_res_matched
|
Line 837 lr->lr_res_matched ? lr->lr_res_matched
|
} |
} |
|
|
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG ( OPERATION, DETAIL1, |
"read1msg: adding response id %ld type %ld\n", |
"read1msg: adding response id %ld type %ld\n", |
(long) new->lm_msgid, (long) new->lm_msgtype )); |
(long) new->lm_msgid, (long) new->lm_msgtype, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, "adding response id %ld type %ld:\n", |
Debug( LDAP_DEBUG_TRACE, "adding response id %ld type %ld:\n", |
(long) new->lm_msgid, (long) new->lm_msgtype, 0 ); |
(long) new->lm_msgid, (long) new->lm_msgtype, 0 ); |
Line 964 merge_error_info( LDAP *ld, LDAPRequest
|
Line 963 merge_error_info( LDAP *ld, LDAPRequest
|
} |
} |
|
|
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_DETAIL1, |
LDAP_LOG( OPERATION, DETAIL1, "merged parent (id %d) error info: ", |
"read1msg: merged parent (id %d) error info: result errno %d, " |
parentr->lr_msgid, 0, 0 ); |
"error <%s>, matched <%s>\n", parentr->lr_msgid, |
LDAP_LOG( OPERATION, DETAIL1, "result errno %d, error <%s>, matched <%s>\n", |
parentr->lr_res_errno, parentr->lr_res_error ? |
parentr->lr_res_errno, parentr->lr_res_error ? |
parentr->lr_res_error : "", parentr->lr_res_matched ? |
parentr->lr_res_error : "", parentr->lr_res_matched ? |
parentr->lr_res_matched : "" )); |
parentr->lr_res_matched : "" ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, "merged parent (id %d) error info: ", |
Debug( LDAP_DEBUG_TRACE, "merged parent (id %d) error info: ", |
parentr->lr_msgid, 0, 0 ); |
parentr->lr_msgid, 0, 0 ); |
Line 1024 ldap_msgfree( LDAPMessage *lm )
|
Line 1023 ldap_msgfree( LDAPMessage *lm )
|
int type = 0; |
int type = 0; |
|
|
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_ENTRY, "ldap_msgfree\n" )); |
LDAP_LOG ( OPERATION, ENTRY, "ldap_msgfree\n", 0, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, "ldap_msgfree\n", 0, 0, 0 ); |
Debug( LDAP_DEBUG_TRACE, "ldap_msgfree\n", 0, 0, 0 ); |
#endif |
#endif |
Line 1052 ldap_msgdelete( LDAP *ld, int msgid )
|
Line 1051 ldap_msgdelete( LDAP *ld, int msgid )
|
assert( ld != NULL ); |
assert( ld != NULL ); |
|
|
#ifdef NEW_LOGGING |
#ifdef NEW_LOGGING |
LDAP_LOG (( "result", LDAP_LEVEL_ENTRY, "ldap_msgdelete\n" )); |
LDAP_LOG ( OPERATION, ENTRY, "ldap_msgdelete\n", 0, 0, 0 ); |
#else |
#else |
Debug( LDAP_DEBUG_TRACE, "ldap_msgdelete\n", 0, 0, 0 ); |
Debug( LDAP_DEBUG_TRACE, "ldap_msgdelete\n", 0, 0, 0 ); |
#endif |
#endif |