mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
Fix Debug printf format
This commit is contained in:
parent
c09a2c63e7
commit
7cb866642d
7 changed files with 17 additions and 17 deletions
|
|
@ -99,7 +99,7 @@ done:
|
|||
ldap_pvt_thread_mutex_unlock( &conn->c_mutex );
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE, "do_abandon: op=%ld %sfound\n",
|
||||
id, notfound ? "not " : "", 0 );
|
||||
(long) id, notfound ? "not " : "", 0 );
|
||||
|
||||
return LDAP_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -696,8 +696,8 @@ at_schema_info( Entry *e )
|
|||
val.bv_val = ldap_attributetype2str( &at->sat_atype );
|
||||
if ( val.bv_val ) {
|
||||
val.bv_len = strlen( val.bv_val );
|
||||
Debug( LDAP_DEBUG_TRACE, "Merging at [%d] %s\n",
|
||||
val.bv_len, val.bv_val, 0 );
|
||||
Debug( LDAP_DEBUG_TRACE, "Merging at [%ld] %s\n",
|
||||
(long) val.bv_len, val.bv_val, 0 );
|
||||
attr_merge( e, "attributeTypes", vals );
|
||||
ldap_memfree( val.bv_val );
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ ldbm_back_modrdn(
|
|||
}
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
"ldbm_back_modrdn: wr to new parent OK np=%p, id=%d\n",
|
||||
"ldbm_back_modrdn: wr to new parent OK np=%p, id=%ld\n",
|
||||
np, np->e_id, 0 );
|
||||
|
||||
/* check newSuperior for "children" acl */
|
||||
|
|
|
|||
|
|
@ -45,8 +45,8 @@ shell_back_abandon(
|
|||
ldap_pvt_thread_mutex_unlock( &conn->c_mutex );
|
||||
|
||||
if ( pid != -1 ) {
|
||||
Debug( LDAP_DEBUG_ARGS, "shell killing pid %d\n", pid,
|
||||
0, 0 );
|
||||
Debug( LDAP_DEBUG_ARGS, "shell killing pid %d\n",
|
||||
(int) pid, 0, 0 );
|
||||
kill( pid, SIGTERM );
|
||||
} else {
|
||||
Debug( LDAP_DEBUG_ARGS, "shell could not find op %d\n",
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ slap_op_remove( Operation **olist, Operation *op )
|
|||
|
||||
if ( *tmp == NULL ) {
|
||||
Debug( LDAP_DEBUG_ANY, "op_delete: can't find op %ld\n",
|
||||
op->o_msgid, 0, 0 );
|
||||
(long) op->o_msgid, 0, 0 );
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1067,8 +1067,8 @@ syn_schema_info( Entry *e )
|
|||
val.bv_val = ldap_syntax2str( &syn->ssyn_syn );
|
||||
if ( val.bv_val ) {
|
||||
val.bv_len = strlen( val.bv_val );
|
||||
Debug( LDAP_DEBUG_TRACE, "Merging syn [%d] %s\n",
|
||||
val.bv_len, val.bv_val, 0 );
|
||||
Debug( LDAP_DEBUG_TRACE, "Merging syn [%ld] %s\n",
|
||||
(long) val.bv_len, val.bv_val, 0 );
|
||||
attr_merge( e, "ldapSyntaxes", vals );
|
||||
ldap_memfree( val.bv_val );
|
||||
} else {
|
||||
|
|
@ -1092,8 +1092,8 @@ mr_schema_info( Entry *e )
|
|||
val.bv_val = ldap_matchingrule2str( &mr->smr_mrule );
|
||||
if ( val.bv_val ) {
|
||||
val.bv_len = strlen( val.bv_val );
|
||||
Debug( LDAP_DEBUG_TRACE, "Merging mr [%d] %s\n",
|
||||
val.bv_len, val.bv_val, 0 );
|
||||
Debug( LDAP_DEBUG_TRACE, "Merging mr [%ld] %s\n",
|
||||
(long) val.bv_len, val.bv_val, 0 );
|
||||
attr_merge( e, "matchingRules", vals );
|
||||
ldap_memfree( val.bv_val );
|
||||
} else {
|
||||
|
|
@ -1117,8 +1117,8 @@ oc_schema_info( Entry *e )
|
|||
val.bv_val = ldap_objectclass2str( &oc->soc_oclass );
|
||||
if ( val.bv_val ) {
|
||||
val.bv_len = strlen( val.bv_val );
|
||||
Debug( LDAP_DEBUG_TRACE, "Merging oc [%d] %s\n",
|
||||
val.bv_len, val.bv_val, 0 );
|
||||
Debug( LDAP_DEBUG_TRACE, "Merging oc [%ld] %s\n",
|
||||
(long) val.bv_len, val.bv_val, 0 );
|
||||
attr_merge( e, "objectClasses", vals );
|
||||
ldap_memfree( val.bv_val );
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -120,13 +120,13 @@ slap_init_user( char *user, char *group )
|
|||
if ( got_gid ) {
|
||||
if ( setgid( gid ) != 0 ) {
|
||||
Debug( LDAP_DEBUG_ANY, "Could not set real group id to %d\n",
|
||||
gid, 0, 0 );
|
||||
(int) gid, 0, 0 );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
#ifdef HAVE_SETEGID
|
||||
if ( setegid( gid ) != 0 ) {
|
||||
Debug( LDAP_DEBUG_ANY, "Could not set effective group id to %d\n",
|
||||
gid, 0, 0 );
|
||||
(int) gid, 0, 0 );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
#endif
|
||||
|
|
@ -135,13 +135,13 @@ slap_init_user( char *user, char *group )
|
|||
if ( got_uid ) {
|
||||
if ( setuid( uid ) != 0 ) {
|
||||
Debug( LDAP_DEBUG_ANY, "Could not set real user id to %d\n",
|
||||
uid, 0, 0 );
|
||||
(int) uid, 0, 0 );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
#ifdef HAVE_SETEUID
|
||||
if ( seteuid( uid ) != 0 ) {
|
||||
Debug( LDAP_DEBUG_ANY, "Could not set effective user id to %d\n",
|
||||
uid, 0, 0 );
|
||||
(int) uid, 0, 0 );
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue