mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 07:30:57 -05:00
Add missing newlines to debug msgs
This commit is contained in:
parent
7ad72fca15
commit
016500f41d
3 changed files with 23 additions and 23 deletions
|
|
@ -62,7 +62,7 @@ static int write_rpc(nssov_rpc_cbp *cbp,Entry *entry)
|
|||
a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[0].an_desc );
|
||||
if ( !a || !a->a_vals )
|
||||
{
|
||||
Debug(LDAP_DEBUG_ANY,"rpc entry %s does not contain %s value",
|
||||
Debug(LDAP_DEBUG_ANY,"rpc entry %s does not contain %s value\n",
|
||||
entry->e_name.bv_val, cbp->mi->mi_attrs[0].an_desc->ad_cname.bv_val, 0 );
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -85,17 +85,17 @@ static int write_rpc(nssov_rpc_cbp *cbp,Entry *entry)
|
|||
a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[1].an_desc );
|
||||
if ( !a || !a->a_vals )
|
||||
{
|
||||
Debug(LDAP_DEBUG_ANY,"rpc entry %s does not contain %s value",
|
||||
Debug(LDAP_DEBUG_ANY,"rpc entry %s does not contain %s value\n",
|
||||
entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val, 0 );
|
||||
return 0;
|
||||
} else if ( a->a_numvals > 1 ) {
|
||||
Debug(LDAP_DEBUG_ANY,"rpc entry %s contains multiple %s values",
|
||||
Debug(LDAP_DEBUG_ANY,"rpc entry %s contains multiple %s values\n",
|
||||
entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val, 0 );
|
||||
}
|
||||
number=(int)strtol(a->a_vals[0].bv_val,&tmp,0);
|
||||
if (*tmp)
|
||||
{
|
||||
Debug(LDAP_DEBUG_ANY,"rpc entry %s contains non-numeric %s value",
|
||||
Debug(LDAP_DEBUG_ANY,"rpc entry %s contains non-numeric %s value\n",
|
||||
entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val, 0 );
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -126,7 +126,7 @@ NSSOV_HANDLE(
|
|||
READ_STRING_BUF2(fp,cbp.buf,sizeof(cbp.buf));
|
||||
cbp.name.bv_len = tmpint32;
|
||||
cbp.name.bv_val = cbp.buf;,
|
||||
Debug(LDAP_DEBUG_TRACE,"nssov_rpc_byname(%s)",cbp.name.bv_val,0,0);,
|
||||
Debug(LDAP_DEBUG_TRACE,"nssov_rpc_byname(%s)\n",cbp.name.bv_val,0,0);,
|
||||
NSLCD_ACTION_RPC_BYNAME,
|
||||
nssov_filter_byname(cbp.mi,0,&cbp.name,&filter)
|
||||
)
|
||||
|
|
@ -141,7 +141,7 @@ NSSOV_HANDLE(
|
|||
cbp.numb.bv_val = cbp.buf;
|
||||
cbp.numb.bv_len = snprintf(cbp.buf,sizeof(cbp.buf),"%d",number);
|
||||
BER_BVZERO(&cbp.name);,
|
||||
Debug(LDAP_DEBUG_TRACE,"nssov_rpc_bynumber(%s)",cbp.numb.bv_val,0,0);,
|
||||
Debug(LDAP_DEBUG_TRACE,"nssov_rpc_bynumber(%s)\n",cbp.numb.bv_val,0,0);,
|
||||
NSLCD_ACTION_RPC_BYNUMBER,
|
||||
nssov_filter_byid(cbp.mi,1,&cbp.numb,&filter)
|
||||
)
|
||||
|
|
@ -150,7 +150,7 @@ NSSOV_HANDLE(
|
|||
rpc,all,
|
||||
struct berval filter;
|
||||
/* no parameters to read */,
|
||||
Debug(LDAP_DEBUG_TRACE,"nssov_rpc_all()",0,0,0);,
|
||||
Debug(LDAP_DEBUG_TRACE,"nssov_rpc_all()\n",0,0,0);,
|
||||
NSLCD_ACTION_RPC_ALL,
|
||||
(filter=cbp.mi->mi_filter,0)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ static int write_service(nssov_service_cbp *cbp,Entry *entry)
|
|||
a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[0].an_desc );
|
||||
if ( !a || !a->a_vals )
|
||||
{
|
||||
Debug(LDAP_DEBUG_ANY,"service entry %s does not contain %s value",
|
||||
Debug(LDAP_DEBUG_ANY,"service entry %s does not contain %s value\n",
|
||||
entry->e_name.bv_val, cbp->mi->mi_attrs[0].an_desc->ad_cname.bv_val, 0 );
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -147,17 +147,17 @@ static int write_service(nssov_service_cbp *cbp,Entry *entry)
|
|||
a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[1].an_desc );
|
||||
if ( !a || !a->a_vals )
|
||||
{
|
||||
Debug(LDAP_DEBUG_ANY,"service entry %s does not contain %s value",
|
||||
Debug(LDAP_DEBUG_ANY,"service entry %s does not contain %s value\n",
|
||||
entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val, 0 );
|
||||
return 0;
|
||||
} else if ( a->a_numvals > 1 ) {
|
||||
Debug(LDAP_DEBUG_ANY,"service entry %s contains multiple %s values",
|
||||
Debug(LDAP_DEBUG_ANY,"service entry %s contains multiple %s values\n",
|
||||
entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val, 0 );
|
||||
}
|
||||
port=(int)strtol(a->a_vals[0].bv_val,&tmp,0);
|
||||
if (*tmp)
|
||||
{
|
||||
Debug(LDAP_DEBUG_ANY,"service entry %s contains non-numeric %s value",
|
||||
Debug(LDAP_DEBUG_ANY,"service entry %s contains non-numeric %s value\n",
|
||||
entry->e_name.bv_val, cbp->mi->mi_attrs[1].an_desc->ad_cname.bv_val, 0 );
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -167,7 +167,7 @@ static int write_service(nssov_service_cbp *cbp,Entry *entry)
|
|||
a = attr_find( entry->e_attrs, cbp->mi->mi_attrs[2].an_desc );
|
||||
if ( !a || !a->a_vals )
|
||||
{
|
||||
Debug(LDAP_DEBUG_ANY,"service entry %s does not contain %s value",
|
||||
Debug(LDAP_DEBUG_ANY,"service entry %s does not contain %s value\n",
|
||||
entry->e_name.bv_val, cbp->mi->mi_attrs[2].an_desc->ad_cname.bv_val, 0 );
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -215,7 +215,7 @@ NSSOV_HANDLE(
|
|||
READ_STRING_BUF2(fp,cbp.pbuf,sizeof(cbp.pbuf));
|
||||
cbp.prot.bv_len = tmpint32;
|
||||
cbp.prot.bv_val = tmpint32 ? cbp.pbuf : NULL;,
|
||||
Debug(LDAP_DEBUG_TRACE,"nssov_service_byname(%s,%s)",cbp.name.bv_val,cbp.prot.bv_val,0);,
|
||||
Debug(LDAP_DEBUG_TRACE,"nssov_service_byname(%s,%s)\n",cbp.name.bv_val,cbp.prot.bv_val,0);,
|
||||
NSLCD_ACTION_SERVICE_BYNAME,
|
||||
mkfilter_service_byname(cbp.mi,&cbp.name,&cbp.prot,&filter)
|
||||
)
|
||||
|
|
@ -232,7 +232,7 @@ NSSOV_HANDLE(
|
|||
READ_STRING_BUF2(fp,cbp.pbuf,sizeof(cbp.pbuf));
|
||||
cbp.prot.bv_len = tmpint32;
|
||||
cbp.prot.bv_val = tmpint32 ? cbp.pbuf : NULL;,
|
||||
Debug(LDAP_DEBUG_TRACE,"nssov_service_bynumber(%s,%s)",cbp.name.bv_val,cbp.prot.bv_val,0);,
|
||||
Debug(LDAP_DEBUG_TRACE,"nssov_service_bynumber(%s,%s)\n",cbp.name.bv_val,cbp.prot.bv_val,0);,
|
||||
NSLCD_ACTION_SERVICE_BYNUMBER,
|
||||
mkfilter_service_bynumber(cbp.mi,&cbp.name,&cbp.prot,&filter)
|
||||
)
|
||||
|
|
@ -242,7 +242,7 @@ NSSOV_HANDLE(
|
|||
struct berval filter;
|
||||
/* no parameters to read */
|
||||
BER_BVZERO(&cbp.prot);,
|
||||
Debug(LDAP_DEBUG_TRACE,"nssov_service_all()",0,0,0);,
|
||||
Debug(LDAP_DEBUG_TRACE,"nssov_service_all()\n",0,0,0);,
|
||||
NSLCD_ACTION_SERVICE_ALL,
|
||||
(filter=cbp.mi->mi_filter,0)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ static long to_date(struct berval *date,AttributeDescription *attr)
|
|||
value=strtol(buffer,&tmp,0);
|
||||
if ((buffer[0]=='\0')||(*tmp!='\0'))
|
||||
{
|
||||
Debug(LDAP_DEBUG_ANY,"shadow entry contains non-numeric %s value",
|
||||
Debug(LDAP_DEBUG_ANY,"shadow entry contains non-numeric %s value\n",
|
||||
attr->ad_cname.bv_val,0,0);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -102,7 +102,7 @@ static long to_date(struct berval *date,AttributeDescription *attr)
|
|||
value=strtol(date->bv_val,&tmp,0);
|
||||
if ((date->bv_val[0]=='\0')||(*tmp!='\0'))
|
||||
{
|
||||
Debug(LDAP_DEBUG_ANY,"shadow entry contains non-numeric %s value",
|
||||
Debug(LDAP_DEBUG_ANY,"shadow entry contains non-numeric %s value\n",
|
||||
attr->ad_cname.bv_val,0,0);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -121,13 +121,13 @@ static long to_date(struct berval *date,AttributeDescription *attr)
|
|||
{ \
|
||||
if (a->a_numvals > 1) \
|
||||
{ \
|
||||
Debug(LDAP_DEBUG_ANY,"shadow entry %s contains multiple %s values", \
|
||||
Debug(LDAP_DEBUG_ANY,"shadow entry %s contains multiple %s values\n", \
|
||||
entry->e_name.bv_val, cbp->mi->mi_attrs[key].an_desc->ad_cname.bv_val,0); \
|
||||
} \
|
||||
var=strtol(a->a_vals[0].bv_val,&tmp,0); \
|
||||
if ((a->a_vals[0].bv_val[0]=='\0')||(*tmp!='\0')) \
|
||||
{ \
|
||||
Debug(LDAP_DEBUG_ANY,"shadow entry %s contains non-numeric %s value", \
|
||||
Debug(LDAP_DEBUG_ANY,"shadow entry %s contains non-numeric %s value\n", \
|
||||
entry->e_name.bv_val, cbp->mi->mi_attrs[key].an_desc->ad_cname.bv_val,0); \
|
||||
return 0; \
|
||||
} \
|
||||
|
|
@ -141,7 +141,7 @@ static long to_date(struct berval *date,AttributeDescription *attr)
|
|||
{ \
|
||||
if (a->a_numvals > 1) \
|
||||
{ \
|
||||
Debug(LDAP_DEBUG_ANY,"shadow entry %s contains multiple %s values", \
|
||||
Debug(LDAP_DEBUG_ANY,"shadow entry %s contains multiple %s values\n", \
|
||||
entry->e_name.bv_val, cbp->mi->mi_attrs[key].an_desc->ad_cname.bv_val,0); \
|
||||
} \
|
||||
var=to_date(&a->a_vals[0],cbp->mi->mi_attrs[key].an_desc); \
|
||||
|
|
@ -173,7 +173,7 @@ static int write_shadow(nssov_shadow_cbp *cbp,Entry *entry)
|
|||
a = attr_find(entry->e_attrs, cbp->mi->mi_attrs[UID_KEY].an_desc);
|
||||
if (!a)
|
||||
{
|
||||
Debug(LDAP_DEBUG_ANY,"shadow entry %s does not contain %s value",
|
||||
Debug(LDAP_DEBUG_ANY,"shadow entry %s does not contain %s value\n",
|
||||
entry->e_name.bv_val, cbp->mi->mi_attrs[UID_KEY].an_desc->ad_cname.bv_val,0);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -239,7 +239,7 @@ NSSOV_HANDLE(
|
|||
READ_STRING_BUF2(fp,cbp.buf,sizeof(cbp.buf));,
|
||||
cbp.name.bv_len = tmpint32;
|
||||
cbp.name.bv_val = cbp.buf;
|
||||
Debug(LDAP_DEBUG_ANY,"nssov_shadow_byname(%s)",cbp.name.bv_val,0,0);,
|
||||
Debug(LDAP_DEBUG_ANY,"nssov_shadow_byname(%s)\n",cbp.name.bv_val,0,0);,
|
||||
NSLCD_ACTION_SHADOW_BYNAME,
|
||||
nssov_filter_byname(cbp.mi,UID_KEY,&cbp.name,&filter)
|
||||
)
|
||||
|
|
@ -249,7 +249,7 @@ NSSOV_HANDLE(
|
|||
struct berval filter;
|
||||
/* no parameters to read */
|
||||
BER_BVZERO(&cbp.name);,
|
||||
Debug(LDAP_DEBUG_ANY,"nssov_shadow_all()",0,0,0);,
|
||||
Debug(LDAP_DEBUG_ANY,"nssov_shadow_all()\n",0,0,0);,
|
||||
NSLCD_ACTION_SHADOW_ALL,
|
||||
(filter=cbp.mi->mi_filter,0)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue