summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/sdap_async_groups.c
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-07-17 12:41:33 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-11 19:44:54 +0200
commit0e65abe5cf2abf5d4b431cf6bd161b419f07901d (patch)
treeaf685729a48d4f1874113f25011484022337b13f /src/providers/ldap/sdap_async_groups.c
parent71e234151ddc6b50576364c30bda2b72264b1083 (diff)
downloadsssd-0e65abe5cf2abf5d4b431cf6bd161b419f07901d.tar.gz
sssd-0e65abe5cf2abf5d4b431cf6bd161b419f07901d.tar.xz
sssd-0e65abe5cf2abf5d4b431cf6bd161b419f07901d.zip
Fix formating of variables with type: size_t
Diffstat (limited to 'src/providers/ldap/sdap_async_groups.c')
-rw-r--r--src/providers/ldap/sdap_async_groups.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index bec27e0a7..2ce1d5dd6 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -377,7 +377,7 @@ sdap_process_ghost_members(struct sysdb_attrs *attrs,
ghostel->num_values = gh->num_values;
cnt = ghostel->num_values + memberel->num_values;
- DEBUG(SSSDBG_TRACE_FUNC, ("Group has %d members\n", cnt));
+ DEBUG(SSSDBG_TRACE_FUNC, ("Group has %zu members\n", cnt));
/* Now process RFC2307bis ghost hash table */
if (ghosts && cnt > 0) {
@@ -1072,8 +1072,9 @@ sdap_process_missing_member_2307bis(struct tevent_req *req,
if (grp_state->check_count > GROUPMEMBER_REQ_PARALLEL) {
DEBUG(7, (" queueing search for: %s\n", user_dn));
if (!grp_state->queued_members) {
- DEBUG(7, ("Allocating queue for %d members\n",
- num_users - grp_state->check_count));
+ DEBUG(SSSDBG_TRACE_LIBS,
+ ("Allocating queue for %zu members\n",
+ num_users - grp_state->check_count));
grp_state->queued_members = talloc_array(grp_state, char *,
num_users - grp_state->check_count + 1);
@@ -1349,7 +1350,7 @@ static void sdap_process_group_members(struct tevent_req *subreq)
uint8_t* name_string;
state->check_count--;
- DEBUG(9, ("Members remaining: %d\n", state->check_count));
+ DEBUG(SSSDBG_TRACE_ALL, ("Members remaining: %zu\n", state->check_count));
ret = sdap_get_generic_recv(subreq, state, &count, &usr_attrs);
talloc_zfree(subreq);
@@ -1358,7 +1359,8 @@ static void sdap_process_group_members(struct tevent_req *subreq)
}
if (count != 1) {
ret = EINVAL;
- DEBUG(7, ("Expected one user entry and got %d\n", count));
+ DEBUG(SSSDBG_TRACE_LIBS,
+ ("Expected one user entry and got %zu\n", count));
goto next;
}
ret = sysdb_attrs_get_el(usr_attrs[0],
@@ -1584,7 +1586,8 @@ static void sdap_get_groups_process(struct tevent_req *subreq)
return;
}
- DEBUG(6, ("Search for groups, returned %d results.\n", count));
+ DEBUG(SSSDBG_TRACE_FUNC,
+ ("Search for groups, returned %zu results.\n", count));
if (!state->enumeration && count > 1) {
DEBUG(SSSDBG_MINOR_FAILURE,
@@ -1747,7 +1750,7 @@ static void sdap_get_groups_done(struct tevent_req *subreq)
}
state->check_count--;
- DEBUG(9, ("Groups remaining: %d\n", state->check_count));
+ DEBUG(SSSDBG_TRACE_ALL, ("Groups remaining: %zu\n", state->check_count));
if (state->check_count == 0) {
@@ -1765,7 +1768,7 @@ static void sdap_get_groups_done(struct tevent_req *subreq)
tevent_req_error(req, ret);
return;
}
- DEBUG(9, ("Saving %d Groups - Done\n", state->count));
+ DEBUG(SSSDBG_TRACE_ALL, ("Saving %zu Groups - Done\n", state->count));
sysret = sysdb_transaction_commit(state->sysdb);
if (sysret != EOK) {
DEBUG(0, ("Couldn't commit transaction\n"));