if ( slapMode & SLAP_SERVER_MODE ) {
/* close socket if it's still in use */
- if (ni->ni_socket >= 0);
+ if (ni->ni_socket >= 0)
{
if (close(ni->ni_socket))
Debug( LDAP_DEBUG_ANY,"problem closing server socket (ignored): %s",strerror(errno),0,0);
if ( c->value_int < 0 ) {
Debug( LDAP_DEBUG_ANY, "%s: smbk5pwd: "
"<%s> invalid negative value \"%d\".",
- c->log, c->argv[ 0 ], 0 );
+ c->log, c->argv[ 0 ], c->value_int );
return 1;
}
pi->smb_must_change = c->value_int;
if ( c->value_int < 0 ) {
Debug( LDAP_DEBUG_ANY, "%s: smbk5pwd: "
"<%s> invalid negative value \"%d\".",
- c->log, c->argv[ 0 ], 0 );
+ c->log, c->argv[ 0 ], c->value_int );
return 1;
}
pi->smb_can_change = c->value_int;
} else {
Debug( LDAP_DEBUG_ANY,
"[%s:%d] unknown command '%s'\n",
- fname, lineno, "" );
+ fname, lineno, argv[ 0 ] );
return -1;
}
if ( src[ 0 ] != '\0' ) {
if ( oc_bvfind( &mapping[ 0 ].src ) == NULL ) {
Debug( LDAP_DEBUG_ANY,
- "warning, source objectClass '%s' should be defined in schema\n",
+ "%s: warning, source objectClass '%s' should be defined in schema\n",
c->log, src, 0 );
/*
if ( oc_bvfind( &mapping[ 0 ].dst ) == NULL ) {
Debug( LDAP_DEBUG_ANY,
- "warning, destination objectClass '%s' is not defined in schema\n",
+ "%s: warning, destination objectClass '%s' is not defined in schema\n",
c->log, dst, 0 );
}
} else {
rc = slap_bv2ad( &mapping[ 0 ].src, &ad, &text );
if ( rc != LDAP_SUCCESS ) {
Debug( LDAP_DEBUG_ANY,
- "warning, source attributeType '%s' should be defined in schema\n",
+ "%s: warning, source attributeType '%s' should be defined in schema\n",
c->log, src, 0 );
/*
rc = slap_bv2ad( &mapping[ 0 ].dst, &ad, &text );
if ( rc != LDAP_SUCCESS ) {
Debug( LDAP_DEBUG_ANY,
- "warning, destination attributeType '%s' is not defined in schema\n",
+ "%s: warning, destination attributeType '%s' is not defined in schema\n",
c->log, dst, 0 );
/*
}
break;
default:
- Debug( LDAP_DEBUG_TRACE, "==> asyncmeta_clear_bm_context: other message type",
- 0, 0, 0 );
+ Debug( LDAP_DEBUG_TRACE, "==> asyncmeta_clear_bm_context: other message type" );
}
if (bmc->dc != NULL) {
free (bmc->dc);
if (clear_cl > 0) {
asyncmeta_free_candidate_list(cl, lock);
- Debug( LDAP_DEBUG_TRACE, "==> asyncmeta_clear_bm_context: free_cl_list\n",
- 0, 0, 0 );
+ Debug( LDAP_DEBUG_TRACE, "==> asyncmeta_clear_bm_context: free_cl_list\n" );
}
#else
asyncmeta_memctx_put(op->o_threadctx, op->o_tmpmemctx);
if ( be->be_suffix == NULL ) {
Debug( LDAP_DEBUG_ANY,
LDAP_XSTRING(bdb_db_open) ": need suffix.\n",
- 1, 0, 0 );
+ 0, 0, 0 );
return -1;
}
if ( be->be_suffix == NULL ) {
Debug( LDAP_DEBUG_ANY,
LDAP_XSTRING(mdb_db_open) ": need suffix.\n",
- 1, 0, 0 );
+ 0, 0, 0 );
return -1;
}
if ( src[ 0 ] != '\0' ) {
if ( oc_bvfind( &mapping[ 0 ].src ) == NULL ) {
Debug( LDAP_DEBUG_ANY,
- "warning, source objectClass '%s' should be defined in schema\n",
+ "%s: warning, source objectClass '%s' should be defined in schema\n",
c->log, src, 0 );
/*
if ( oc_bvfind( &mapping[ 0 ].dst ) == NULL ) {
Debug( LDAP_DEBUG_ANY,
- "warning, destination objectClass '%s' is not defined in schema\n",
+ "%s: warning, destination objectClass '%s' is not defined in schema\n",
c->log, dst, 0 );
}
} else {
rc = slap_bv2ad( &mapping[ 0 ].src, &ad, &text );
if ( rc != LDAP_SUCCESS ) {
Debug( LDAP_DEBUG_ANY,
- "warning, source attributeType '%s' should be defined in schema\n",
+ "%s: warning, source attributeType '%s' should be defined in schema\n",
c->log, src, 0 );
/*
rc = slap_bv2ad( &mapping[ 0 ].dst, &ad, &text );
if ( rc != LDAP_SUCCESS ) {
Debug( LDAP_DEBUG_ANY,
- "warning, destination attributeType '%s' is not defined in schema\n",
+ "%s: warning, destination attributeType '%s' is not defined in schema\n",
c->log, dst, 0 );
/*
FILE *fp;
struct berval b64;
- Debug( LDAP_DEBUG_ARGS, "==> sock_back_extended(%s)\n",
+ Debug( LDAP_DEBUG_ARGS, "==> sock_back_extended(%s, %s)\n",
op->ore_reqoid.bv_val, op->o_req_dn.bv_val, 0 );
if ( (fp = opensock( si->si_sockpath )) == NULL ) {
if ( rc ) {
Debug( LDAP_DEBUG_ANY,
LDAP_XSTRING(wt_dn2entry)
- ": entry decode error: %s (%d)\n",
+ ": entry decode error: %d\n",
rc, 0, 0 );
goto done;
}
if ( rc ) {
Debug( LDAP_DEBUG_ANY,
LDAP_XSTRING(wt_id2entry)
- ": entry decode error: %s (%d)\n",
+ ": entry decode error: %d\n",
rc, 0, 0 );
goto done;
}
if ( be->be_suffix == NULL ) {
Debug( LDAP_DEBUG_ANY,
LDAP_XSTRING(wt_db_open) ": need suffix.\n",
- 1, 0, 0 );
+ 0, 0, 0 );
return -1;
}
if( !wc ){
Debug( LDAP_DEBUG_ANY,
LDAP_XSTRING(wt_tool_entry_open)
- ": wt_ctx_get failed: %s (%d)\n",
+ ": wt_ctx_get failed\n",
0, 0, 0 );
return -1;
}
rc = wc->session->rollback_transaction(wc->session, NULL);
Debug( LDAP_DEBUG_ANY,
"=> " LDAP_XSTRING(wt_tool_entry_reindex)
- ": rollback transaction %s\n",
+ ": rollback transaction %s (%d)\n",
wiredtiger_strerror(rc), rc, 0 );
}
if ( num_known_controls >= SLAP_MAX_CIDS ) {
Debug( LDAP_DEBUG_ANY, "Too many controls registered."
" Recompile slapd with SLAP_MAX_CIDS defined > %d\n",
- SLAP_MAX_CIDS, 0, 0 );
+ num_known_controls, 0, 0 );
return LDAP_OTHER;
}