>From d757fcade9e736387d8528731cc944bd2cc66a68 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 17 Jul 2013 16:10:51 +0200 Subject: [PATCH 15/16] Fix formating of variables with type: [gu]?id_t --- src/providers/ldap/sdap_async_initgroups_ad.c | 2 +- src/providers/ldap/sdap_idmap.c | 2 +- src/providers/simple/simple_access_check.c | 8 ++++---- src/tests/krb5_child-test.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/providers/ldap/sdap_async_initgroups_ad.c b/src/providers/ldap/sdap_async_initgroups_ad.c index daf581298b167cc879d8115523828a0695dc8f7a..fc83a03f4da3fef1c5d6a8718616219256fa23ae 100644 --- a/src/providers/ldap/sdap_async_initgroups_ad.c +++ b/src/providers/ldap/sdap_async_initgroups_ad.c @@ -472,7 +472,7 @@ sdap_get_ad_tokengroups_initgroups_lookup_done(struct tevent_req *subreq) } DEBUG(SSSDBG_TRACE_LIBS, - ("Processing membership GID [%lu]\n", + ("Processing membership GID [%u]\n", gid)); /* Check whether this GID already exists in the sysdb */ diff --git a/src/providers/ldap/sdap_idmap.c b/src/providers/ldap/sdap_idmap.c index 0939c31e45a081a8494f4efa82ac1608314b82a3..f3bfcd1e3d91aa84d475c50d1aaa0955ad732319 100644 --- a/src/providers/ldap/sdap_idmap.c +++ b/src/providers/ldap/sdap_idmap.c @@ -333,7 +333,7 @@ sdap_idmap_add_domain(struct sdap_idmap_ctx *idmap_ctx, goto done; } DEBUG(SSSDBG_TRACE_LIBS, - ("Adding domain [%s] as slice [%llu]\n", dom_sid, slice)); + ("Adding domain [%s] as slice [%u]\n", dom_sid, slice)); if (range.max > idmap_upper) { /* This should never happen */ diff --git a/src/providers/simple/simple_access_check.c b/src/providers/simple/simple_access_check.c index 7335135ea5dedecdb5ba2be60a57d18eb897a960..1509c9df40c197376b982d9e0041a7690a44a1ef 100644 --- a/src/providers/simple/simple_access_check.c +++ b/src/providers/simple/simple_access_check.c @@ -245,7 +245,7 @@ simple_resolve_group_check(struct simple_resolve_group_state *state) group_attrs, &group); if (ret != EOK) { DEBUG(SSSDBG_OP_FAILURE, - ("Could not look up group by gid [%lu]: [%d][%s]\n", + ("Could not look up group by gid [%u]: [%d][%s]\n", state->gid, ret, sss_strerror(ret))); return ret; } @@ -470,7 +470,7 @@ static void simple_check_get_groups_next(struct tevent_req *subreq) talloc_zfree(subreq); if (ret != EOK) { DEBUG(SSSDBG_OP_FAILURE, - ("Could not resolve name of group with GID %llu\n", + ("Could not resolve name of group with GID %u\n", state->lookup_gids[state->giter])); tevent_req_error(req, ret); return; @@ -545,7 +545,7 @@ simple_check_process_group(struct simple_check_groups_state *state, /* Non-posix group with a GID. Needs resolving */ state->lookup_gids[state->num_gids] = gid; - DEBUG(SSSDBG_TRACE_INTERNAL, ("Adding GID %llu\n", gid)); + DEBUG(SSSDBG_TRACE_INTERNAL, ("Adding GID %u\n", gid)); state->num_gids++; return EOK; } @@ -564,7 +564,7 @@ simple_check_get_groups_primary(struct simple_check_groups_state *state, gid, group_attrs, &msg); if (ret != EOK) { DEBUG(SSSDBG_OP_FAILURE, - ("Could not look up primary group [%lu]: [%d][%s]\n", + ("Could not look up primary group [%u]: [%d][%s]\n", gid, ret, sss_strerror(ret))); /* We have to treat this as non-fatal, because the primary * group may be local to the machine and not available in diff --git a/src/tests/krb5_child-test.c b/src/tests/krb5_child-test.c index 423f8bb8427df8e8c1be25113f1406cff8def2c4..299f60a9e358a34b5afa578ae6bf303740febe9c 100644 --- a/src/tests/krb5_child-test.c +++ b/src/tests/krb5_child-test.c @@ -284,7 +284,7 @@ create_dummy_req(TALLOC_CTX *mem_ctx, const char *user, kr->krb5_ctx->cc_be = &file_cc; break; } - DEBUG(SSSDBG_FUNC_DATA, ("ccname [%s] uid [%llu] gid [%llu]\n", + DEBUG(SSSDBG_FUNC_DATA, ("ccname [%s] uid [%u] gid [%u]\n", kr->ccname, kr->uid, kr->gid)); ret = kr->krb5_ctx->cc_be->create(kr->ccname, -- 1.8.3.1