mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Format fixes (%d<->%lu etc)
This commit is contained in:
parent
61312e7989
commit
f841c364eb
@ -670,7 +670,7 @@ static Entry *accesslog_entry( Operation *op, int logop ) {
|
||||
attr_merge_one( e, ad_reqType, &lo->word, NULL );
|
||||
}
|
||||
|
||||
rdn.bv_len = sprintf( rdn.bv_val, "%d", op->o_connid );
|
||||
rdn.bv_len = sprintf( rdn.bv_val, "%lu", op->o_connid );
|
||||
attr_merge_one( e, ad_reqSession, &rdn, NULL );
|
||||
|
||||
if ( BER_BVISNULL( &op->o_dn ))
|
||||
|
@ -1716,7 +1716,7 @@ pc_cf_gen( ConfigArgs *c )
|
||||
break;
|
||||
case PC_TEMP:
|
||||
for (i=0; i<cm->numtemplates; i++) {
|
||||
bv.bv_len = sprintf( c->msg, " %d %d",
|
||||
bv.bv_len = sprintf( c->msg, " %d %ld",
|
||||
qm->templates[i].attr_set_index,
|
||||
qm->templates[i].ttl );
|
||||
bv.bv_len += qm->templates[i].querystr.bv_len + 2;
|
||||
|
@ -629,9 +629,9 @@ make_pwd_history_value( char *timebuf, struct berval *bv, Attribute *pa )
|
||||
int nlen;
|
||||
|
||||
snprintf( str, MAX_PWD_HISTORY_SZ,
|
||||
"%s#%s#%d#", timebuf,
|
||||
"%s#%s#%lu#", timebuf,
|
||||
pa->a_desc->ad_type->sat_syntax->ssyn_oid,
|
||||
pa->a_nvals[0].bv_len );
|
||||
(unsigned long) pa->a_nvals[0].bv_len );
|
||||
str[MAX_PWD_HISTORY_SZ-1] = 0;
|
||||
nlen = strlen(str);
|
||||
|
||||
|
@ -2308,7 +2308,7 @@ slapi_timer_get_time( char *label )
|
||||
{
|
||||
#ifdef LDAP_SLAPI
|
||||
unsigned long start = slapi_timer_current_time();
|
||||
printf("%10ld %10ld usec %s\n", start, 0, label);
|
||||
printf("%10ld %10d usec %s\n", start, 0, label);
|
||||
return start;
|
||||
#else /* LDAP_SLAPI */
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user