Skip to content
Snippets Groups Projects
Commit 37e58bc3 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

Cleanup debug calls

parent 00dc402f
No related branches found
No related tags found
No related merge requests found
...@@ -780,9 +780,11 @@ ber_scanf ( BerElement *ber, ...@@ -780,9 +780,11 @@ ber_scanf ( BerElement *ber,
fmt_reset = fmt; fmt_reset = fmt;
ber_log_printf( LDAP_DEBUG_TRACE, ber->ber_debug, if ( ber->ber_debug & (LDAP_DEBUG_TRACE|LDAP_DEBUG_BER)) {
"ber_scanf fmt (%s) ber:\n", fmt ); ber_log_printf( LDAP_DEBUG_TRACE, ber->ber_debug,
ber_log_dump( LDAP_DEBUG_BER, ber->ber_debug, ber, 1 ); "ber_scanf fmt (%s) ber:\n", fmt );
ber_log_dump( LDAP_DEBUG_BER, ber->ber_debug, ber, 1 );
}
for ( rc = 0; *fmt && rc != LBER_DEFAULT; fmt++ ) { for ( rc = 0; *fmt && rc != LBER_DEFAULT; fmt++ ) {
/* When this is modified, remember to update /* When this is modified, remember to update
......
...@@ -488,8 +488,10 @@ ber_get_next( ...@@ -488,8 +488,10 @@ ber_get_next(
assert( SOCKBUF_VALID( sb ) ); assert( SOCKBUF_VALID( sb ) );
assert( LBER_VALID( ber ) ); assert( LBER_VALID( ber ) );
ber_log_printf( LDAP_DEBUG_TRACE, ber->ber_debug, if ( ber->ber_debug & LDAP_DEBUG_TRACE ) {
"ber_get_next\n" ); ber_log_printf( LDAP_DEBUG_TRACE, ber->ber_debug,
"ber_get_next\n" );
}
/* /*
* Any ber element looks like this: tag length contents. * Any ber element looks like this: tag length contents.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment