mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Silence gcc -Wformat: Put rev 1.343's debugmsg in Debug() so -Wformat can check
This commit is contained in:
parent
753a6d0008
commit
85e8b309d5
@ -243,10 +243,9 @@ slap_access_allowed(
|
|||||||
|
|
||||||
/* DN matches */
|
/* DN matches */
|
||||||
for ( i = 0; i < dnmaxcount && dn_data[i].rm_eo > 0; i++ ) {
|
for ( i = 0; i < dnmaxcount && dn_data[i].rm_eo > 0; i++ ) {
|
||||||
char *debugmsg = "=> match[dn%d]: %d %d ";
|
|
||||||
char *data = e->e_ndn;
|
char *data = e->e_ndn;
|
||||||
|
|
||||||
Debug( LDAP_DEBUG_ACL, debugmsg, i,
|
Debug( LDAP_DEBUG_ACL, "=> match[dn%d]: %d %d ", i,
|
||||||
(int)dn_data[i].rm_so,
|
(int)dn_data[i].rm_so,
|
||||||
(int)dn_data[i].rm_eo );
|
(int)dn_data[i].rm_eo );
|
||||||
if ( dn_data[i].rm_so <= dn_data[0].rm_eo ) {
|
if ( dn_data[i].rm_so <= dn_data[0].rm_eo ) {
|
||||||
@ -262,10 +261,9 @@ slap_access_allowed(
|
|||||||
|
|
||||||
/* val matches */
|
/* val matches */
|
||||||
for ( i = 0; i < valmaxcount && val_data[i].rm_eo > 0; i++ ) {
|
for ( i = 0; i < valmaxcount && val_data[i].rm_eo > 0; i++ ) {
|
||||||
char *debugmsg = "=> match[val%d]: %d %d ";
|
|
||||||
char *data = val->bv_val;
|
char *data = val->bv_val;
|
||||||
|
|
||||||
Debug( LDAP_DEBUG_ACL, debugmsg, i,
|
Debug( LDAP_DEBUG_ACL, "=> match[val%d]: %d %d ", i,
|
||||||
(int)val_data[i].rm_so,
|
(int)val_data[i].rm_so,
|
||||||
(int)val_data[i].rm_eo );
|
(int)val_data[i].rm_eo );
|
||||||
if ( val_data[i].rm_so <= val_data[0].rm_eo ) {
|
if ( val_data[i].rm_so <= val_data[0].rm_eo ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user