fix logging macros (thanks Mei)

This commit is contained in:
Gary Williams 2001-02-02 13:49:26 +00:00
parent c8326ee004
commit e565505f21
2 changed files with 4 additions and 4 deletions

View File

@ -311,7 +311,7 @@ slap_sasl_authorize(
#ifdef NEW_LOGGING
LDAP_LOG(( "sasl", LDAP_LEVEL_ENTRY,
"slap_sasl_authorize: conn %d authorization allowed\n",
(long)(conn ? conn->c_connid : -1 ) );
(long)(conn ? conn->c_connid : -1 ) ));
#else
Debug( LDAP_DEBUG_TRACE, "SASL Authorize [conn=%ld]: "
" authorization allowed\n",

View File

@ -142,7 +142,7 @@ int slap_sasl_regexp_config( const char *match, const char *replace )
if ( rc ) {
#ifdef NEW_LOGGING
LDAP_LOG(( "sasl", LDAP_LEVEL_ERR,
"slap_sasl_regexp_config: \"%s\" could not be compiled.\n"
"slap_sasl_regexp_config: \"%s\" could not be compiled.\n",
reg->match ));
#else
Debug( LDAP_DEBUG_ANY,
@ -429,7 +429,7 @@ int slap_sasl_match( char *rule, char *assertDN, char *authc )
#ifdef NEW_LOGGING
LDAP_LOG(( "sasl", LDAP_LEVEL_ENTRY,
"slap_sasl_match: comparing DN %s to rule %s\n", assertDN, rule );
"slap_sasl_match: comparing DN %s to rule %s\n", assertDN, rule ));
#else
Debug( LDAP_DEBUG_TRACE,
"===>slap_sasl_match: comparing DN %s to rule %s\n", assertDN, rule, 0 );
@ -640,7 +640,7 @@ int slap_sasl_authorized( char *authcDN, char *authzDN )
DONE:
#ifdef NEW_LOGGING
LDAP_LOG(( "sasl", LDAP_LEVEL_ENTRY,
"slap_sasl_authorized: return %s\n", rc ));
"slap_sasl_authorized: return %d\n", rc ));
#else
Debug( LDAP_DEBUG_TRACE, "<== slap_sasl_authorized: return %d\n",rc,0,0 );
#endif