continue;
/* This is a nop, remove it */
- Debug(LDAP_DEBUG_TRACE, "removing nop on %s%s%s",
- a->a_desc->ad_cname.bv_val, "", "");
+ Debug(LDAP_DEBUG_TRACE, "removing nop on %s",
+ a->a_desc->ad_cname.bv_val, 0, 0 );
nops_rm_mod(&op->orm_modlist, mc);
}
if ( strcasecmp( argv[ 0 ], "rewriteEngine" ) == 0 ) {
if ( argc < 2 ) {
Debug( LDAP_DEBUG_ANY,
- "[%s:%d] rewriteEngine needs 'state'\n%s",
- fname, lineno, "" );
+ "[%s:%d] rewriteEngine needs 'state'\n",
+ fname, lineno, 0 );
return -1;
} else if ( argc > 2 ) {
Debug( LDAP_DEBUG_ANY,
"[%s:%d] extra fields in rewriteEngine"
- " will be discarded\n%s",
- fname, lineno, "" );
+ " will be discarded\n",
+ fname, lineno, 0 );
}
if ( strcasecmp( argv[ 1 ], "on" ) == 0 ) {
} else {
Debug( LDAP_DEBUG_ANY,
"[%s:%d] unknown 'state' in rewriteEngine;"
- " assuming 'on'\n%s",
- fname, lineno, "" );
+ " assuming 'on'\n",
+ fname, lineno, 0 );
info->li_state = REWRITE_ON;
}
rc = REWRITE_SUCCESS;
} else if ( strcasecmp( argv[ 0 ], "rewriteMaxPasses" ) == 0 ) {
if ( argc < 2 ) {
Debug( LDAP_DEBUG_ANY,
- "[%s:%d] rewriteMaxPasses needs 'value'\n%s",
- fname, lineno, "" );
+ "[%s:%d] rewriteMaxPasses needs 'value'\n",
+ fname, lineno, 0 );
return -1;
}
} else if ( strcasecmp( argv[ 0 ], "rewriteContext" ) == 0 ) {
if ( argc < 2 ) {
Debug( LDAP_DEBUG_ANY,
- "[%s:%d] rewriteContext needs 'name'\n%s",
- fname, lineno, "" );
+ "[%s:%d] rewriteContext needs 'name'\n",
+ fname, lineno, 0 );
return -1;
}
Debug( LDAP_DEBUG_ANY,
"[%s:%d] rewriteContext"
" needs 'name' after"
- " 'alias'\n%s",
- fname, lineno, "" );
+ " 'alias'\n",
+ fname, lineno, 0 );
return -1;
} else if ( argc > 4 ) {
" rewriteContext"
" after aliased name"
" will be"
- " discarded\n%s",
- fname, lineno, "" );
+ " discarded\n",
+ fname, lineno, 0 );
}
aliased = rewrite_context_find( info,
Debug( LDAP_DEBUG_ANY,
"[%s:%d] extra fields"
" in rewriteContext"
- " will be discarded\n%s",
- fname, lineno, "" );
+ " will be discarded\n",
+ fname, lineno, 0 );
}
}
rc = REWRITE_SUCCESS;
if ( argc < 3 ) {
Debug( LDAP_DEBUG_ANY,
"[%s:%d] rewriteRule needs 'pattern'"
- " 'subst' ['flags']\n%s",
- fname, lineno, "" );
+ " 'subst' ['flags']\n",
+ fname, lineno, 0 );
return -1;
} else if ( argc > 4 ) {
Debug( LDAP_DEBUG_ANY,
"[%s:%d] extra fields in rewriteRule"
- " will be discarded\n%s",
- fname, lineno, "" );
+ " will be discarded\n",
+ fname, lineno, 0 );
}
if ( rewrite_int_curr_context == NULL ) {
Debug( LDAP_DEBUG_ANY,
"[%s:%d] rewriteRule outside a"
- " context; will add to default\n%s",
- fname, lineno, "" );
+ " context; will add to default\n",
+ fname, lineno, 0 );
rewrite_int_curr_context = rewrite_context_find( info,
REWRITE_DEFAULT_CONTEXT );
if ( argc < 3 ) {
Debug( LDAP_DEBUG_ANY,
"[%s:%d] rewriteMap needs at least 'type'"
- " and 'name' ['args']\n%s",
- fname, lineno, "" );
+ " and 'name' ['args']\n",
+ fname, lineno, 0 );
return -1;
}
if ( argc < 3 ) {
Debug( LDAP_DEBUG_ANY,
"[%s:%d] rewriteParam needs 'name'"
- " and 'value'\n%s",
- fname, lineno, "" );
+ " and 'value'\n",
+ fname, lineno, 0 );
return -1;
}
*/
} else {
free( map );
- Debug( LDAP_DEBUG_ANY, "[%s:%d] unknown map type\n%s",
- fname, lineno, "" );
+ Debug( LDAP_DEBUG_ANY, "[%s:%d] unknown map type\n",
+ fname, lineno );
return -1;
}
if ( argc < 1 ) {
Debug( LDAP_DEBUG_ANY,
- "[%s:%d] ldap map needs URI\n%s",
- fname, lineno, "" );
+ "[%s:%d] ldap map needs URI\n",
+ fname, lineno, 0 );
free( data );
return NULL;
}
assert( s != NULL );
assert( currpos != NULL );
- Debug( LDAP_DEBUG_ARGS, "rewrite_xmap_parse: %s\n%s%s",
- s, "", "" );
+ Debug( LDAP_DEBUG_ARGS, "rewrite_xmap_parse: %s\n",
+ s, 0, 0 );
*currpos = NULL;
map = calloc( sizeof( struct rewrite_map ), 1 );
if ( map == NULL ) {
Debug( LDAP_DEBUG_ANY, "rewrite_xmap_parse:"
- " calloc failed\n%s%s%s", "", "", "" );
+ " calloc failed\n", 0, 0, 0 );
return NULL;
}
*dp = '\0';
bv->bv_len = size;
- Debug( LDAP_DEBUG_ACL, "=> acl_string_expand: pattern: %.*s\n", (int)pat->bv_len, pat->bv_val, 0 );
+ Debug( LDAP_DEBUG_ACL, "=> acl_string_expand: pattern: %.*s\n", (int)pat->bv_len, pat->bv_val );
Debug( LDAP_DEBUG_ACL, "=> acl_string_expand: expanded: %s\n", bv->bv_val, 0, 0 );
return 0;
Debug( LDAP_DEBUG_ANY, "slapd-chain: "
"first underlying database \"%s\" "
"cannot contain attribute \"%s\".\n",
- e->e_name.bv_val, ad->ad_cname.bv_val, 0 );
+ e->e_name.bv_val, ad->ad_cname.bv_val );
rc = LDAP_CONSTRAINT_VIOLATION;
goto done;
Debug( LDAP_DEBUG_ANY,
LDAP_XSTRING(wt_dn2id)
": cursor open failed: %s (%d)\n",
- wiredtiger_strerror(rc), rc, 0 );
+ wiredtiger_strerror(rc), rc );
return rc;
}
cursor->set_key(cursor, dn->bv_val);
if (!events) { \
Debug(LDAP_DEBUG_ANY, \
"daemon: SLAP_EVENT_INIT: ch_malloc of events failed, wanted %d bytes\n", \
- sizeof(*events) * SLAP_EVENT_MAX(t), 0, 0); \
+ sizeof(*events) * SLAP_EVENT_MAX(t)); \
slapd_shutdown = 2; \
} \
} \
# define SLAP_SOCK_INIT(t) do { \
int kq_i; \
size_t kq_nbytes; \
- Debug(LDAP_DEBUG_ANY, "daemon: SLAP_SOCK_INIT: dtblsize=%d\n", dtblsize, 0, 0); \
+ Debug(LDAP_DEBUG_ANY, "daemon: SLAP_SOCK_INIT: dtblsize=%d\n", dtblsize); \
slap_daemon[t].sd_nfds = 0; \
slap_daemon[t].sd_changeidx = 0; \
for (kq_i = 0; kq_i < 2; kq_i++) { \
if (!kqc->sd_changes) { \
Debug(LDAP_DEBUG_ANY, \
"daemon: SLAP_SOCK_INIT: ch_calloc of slap_daemon.sd_changes[%d] failed, wanted %d bytes, shutting down\n", \
- kq_i, kq_nbytes, 0); \
+ kq_i, kq_nbytes); \
slapd_shutdown = 2; \
} \
} \
if (!slap_daemon[t].sd_fdmodes) { \
Debug(LDAP_DEBUG_ANY, \
"daemon: SLAP_SOCK_INIT: ch_calloc of slap_daemon.sd_fdmodes failed, wanted %d bytes, shutting down\n", \
- kq_nbytes, 0, 0); \
+ kq_nbytes); \
slapd_shutdown = 2; \
} \
kq_nbytes = sizeof(*slap_daemon[t].sd_l) * dtblsize; \
if (!slap_daemon[t].sd_l) { \
Debug(LDAP_DEBUG_ANY, \
"daemon: SLAP_SOCK_INIT: ch_calloc of slap_daemon.sd_l failed, wanted %d bytes, shutting down\n", \
- kq_nbytes, 0, 0); \
+ kq_nbytes); \
slapd_shutdown = 2; \
} \
slap_daemon[t].sd_kq = kqueue(); \
if (slap_daemon[t].sd_kq < 0) { \
- Debug(LDAP_DEBUG_ANY, "daemon: SLAP_SOCK_INIT: kqueue() failed, errno=%d, shutting down\n", errno, 0, 0); \
+ Debug(LDAP_DEBUG_ANY, "daemon: SLAP_SOCK_INIT: kqueue() failed, errno=%d, shutting down\n", errno); \
slapd_shutdown = 2; \
} \
} while (0)
if (!kqc->sd_changes) { \
Debug(LDAP_DEBUG_ANY, \
"daemon: SLAP_KQUEUE_CHANGE: ch_realloc of slap_daemon.sd_kqc[%d].sd_changes failed, wanted %d bytes, shutting down\n", \
- slap_daemon[t].sd_changeidx, kq_nbytes, 0); \
+ slap_daemon[t].sd_changeidx, kq_nbytes); \
slapd_shutdown = 2; \
break; /* Don't want to do the EV_SET if sd_changes is NULL */ \
} \
} else { \
Debug( LDAP_DEBUG_ANY, \
"daemon: epoll_ctl(ADD,fd=%d) failed, errno=%d, shutting down\n", \
- s, errno, 0 ); \
+ s, errno ); \
slapd_shutdown = 2; \
} \
} while (0)
* need to shutdown.
*/
# define SLAP_SOCK_ADD(t, s, l) do { \
- Debug( LDAP_DEBUG_CONNS, "SLAP_SOCK_ADD(%d, %p)\n", (s), (l), 0 ); \
+ Debug( LDAP_DEBUG_CONNS, "SLAP_SOCK_ADD(%d, %p)\n", (s), (l) ); \
SLAP_DEVPOLL_SOCK_IX(t,(s)) = slap_daemon[t].sd_nfds; \
SLAP_DEVPOLL_SOCK_LX(t,(s)) = (l); \
SLAP_DEVPOLL_SOCK_FD(t,(s)) = (s); \
# define SLAP_SOCK_DEL(t,s) do { \
int fd, index = SLAP_DEVPOLL_SOCK_IX(t,(s)); \
- Debug( LDAP_DEBUG_CONNS, "SLAP_SOCK_DEL(%d)\n", (s), 0, 0 ); \
+ Debug( LDAP_DEBUG_CONNS, "SLAP_SOCK_DEL(%d)\n", (s) ); \
if ( index < 0 ) break; \
if ( index < slap_daemon[t].sd_nfds - 1 ) { \
struct pollfd pfd = slap_daemon[t].sd_pollfd[index]; \
if ( slap_daemon[t].sd_dpfd == -1 ) { \
Debug( LDAP_DEBUG_ANY, "daemon: " SLAP_EVENT_FNAME ": " \
"open(\"" SLAP_EVENT_FNAME "\") failed errno=%d\n", \
- errno, 0, 0 ); \
+ errno ); \
SLAP_SOCK_DESTROY(t); \
return -1; \
} \
int i;
#if 0
- Debug(LDAP_DEBUG_TRACE, "slap_sig_shutdown: signal %d\n", sig, 0, 0);
+ Debug(LDAP_DEBUG_TRACE, "slap_sig_shutdown: signal %d\n", sig);
#endif
/*
if ( argc < 3 ) {
Debug( LDAP_DEBUG_ANY,
"%s : line %d: missing arg(s) in "
- "\"limits <pattern> <limits>\" line.\n%s",
- fname, lineno, "" );
+ "\"limits <pattern> <limits>\" line.\n",
+ fname, lineno, 0 );
return( -1 );
}
"replace")), tmp->sml_type.bv_val, 0 );
if ( tmp->sml_values == NULL ) {
- Debug( LDAP_DEBUG_ARGS, "%s\n",
- "\t\tno values", NULL, NULL );
+ Debug( LDAP_DEBUG_ARGS, "\t\tno values\n" );
} else if ( BER_BVISNULL( &tmp->sml_values[ 0 ] ) ) {
- Debug( LDAP_DEBUG_ARGS, "%s\n",
- "\t\tzero values", NULL, NULL );
+ Debug( LDAP_DEBUG_ARGS, "\t\tzero values\n" );
} else if ( BER_BVISNULL( &tmp->sml_values[ 1 ] ) ) {
- Debug( LDAP_DEBUG_ARGS, "%s, length %ld\n",
- "\t\tone value", (long) tmp->sml_values[0].bv_len, NULL );
+ Debug( LDAP_DEBUG_ARGS, "\t\tone value, length %ld\n",
+ (long) tmp->sml_values[0].bv_len );
} else {
- Debug( LDAP_DEBUG_ARGS, "%s\n",
- "\t\tmultiple values", NULL, NULL );
+ Debug( LDAP_DEBUG_ARGS, "\t\tmultiple values\n" );
}
}