improve last commit

This commit is contained in:
Pierangelo Masarati 2003-03-04 09:43:12 +00:00
parent e24f55b29a
commit 95b115394d

View File

@ -279,15 +279,15 @@ slap_tool_init(
exit( EXIT_FAILURE ); exit( EXIT_FAILURE );
} }
if ( nosubordinates == 0 ) { if ( nosubordinates == 0 && dbnum > 0 ) {
#ifdef NEW_LOGGING #ifdef NEW_LOGGING
LDAP_LOG( BACKEND, ERR, LDAP_LOG( BACKEND, ERR,
"The first database does not allow %s; using the first available one\n", "The first database does not allow %s; using the first available one (%d)\n",
name, 0, 0 ); name, (int)(be - &backends[0]) + 1, 0 );
#else #else
Debug( LDAP_DEBUG_ANY, Debug( LDAP_DEBUG_ANY,
"The first database does not allow %s; using the first available one\n", "The first database does not allow %s; using the first available one (%d)\n",
name, 0, 0 ); name, (int)(be - &backends[0]) + 1, 0 );
#endif #endif
} }