Fix printf/Debug format arguments.

This commit is contained in:
Hallvard Furuseth 2003-05-02 13:08:47 +00:00
parent a54549f1d5
commit 3420d12bdc
3 changed files with 6 additions and 5 deletions

View File

@ -502,11 +502,11 @@ retry: /* transaction retry */
#ifdef NEW_LOGGING
LDAP_LOG ( OPERATION, DETAIL1,
"==>bdb_modrdn: wr to new parent OK np=%p, id=%ld\n",
np, (long) np->e_id, 0 );
(void *) np, (long) np->e_id, 0 );
#else
Debug( LDAP_DEBUG_TRACE,
"bdb_modrdn: wr to new parent OK np=%p, id=%ld\n",
np, (long) np->e_id, 0 );
(void *) np, (long) np->e_id, 0 );
#endif
/* check newSuperior for "children" acl */

View File

@ -341,11 +341,11 @@ ldbm_back_modrdn(
#ifdef NEW_LOGGING
LDAP_LOG( BACK_LDBM, DETAIL1,
"ldbm_back_modrdn: wr to new parent OK np=%p, id=%ld\n",
np, np->e_id, 0 );
(void *) np, np->e_id, 0 );
#else
Debug( LDAP_DEBUG_TRACE,
"ldbm_back_modrdn: wr to new parent OK np=%p, id=%ld\n",
np, np->e_id, 0 );
(void *) np, np->e_id, 0 );
#endif
/* check newSuperior for "children" acl */

View File

@ -2967,7 +2967,8 @@ parse_syncrepl_line(
si->interval = atoi( val );
if ( si->interval < 0 ) {
fprintf( stderr, "Error: parse_syncrepl_line: "
"invalid interval \"%d\"\n", si->interval);
"invalid interval \"%ld\"\n",
(long) si->interval);
return 1;
}
} else if ( !strncasecmp( cargv[ i ],