From: Pavel Filipenský Date: Mon, 18 Jul 2022 13:28:11 +0000 (+0200) Subject: s3:winbind: Change '%u' to '%PRIu32' for uint32_t in winbindd_getpwent.c X-Git-Tag: tevent-0.13.0~74 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb4f1e371762f8409a033f44016183e15c242956;p=thirdparty%2Fsamba.git s3:winbind: Change '%u' to '%PRIu32' for uint32_t in winbindd_getpwent.c Signed-off-by: Pavel Filipenský Reviewed-by: Andreas Schneider --- diff --git a/source3/winbindd/winbindd_getpwent.c b/source3/winbindd/winbindd_getpwent.c index 3e2976485d9..5a788831e12 100644 --- a/source3/winbindd/winbindd_getpwent.c +++ b/source3/winbindd/winbindd_getpwent.c @@ -91,7 +91,7 @@ static void winbindd_getpwent_done(struct tevent_req *subreq) status = wb_next_pwent_recv(subreq); TALLOC_FREE(subreq); if (NT_STATUS_EQUAL(status, NT_STATUS_NO_MORE_ENTRIES)) { - D_DEBUG("winbindd_getpwent_done: done with %u users\n", + D_DEBUG("winbindd_getpwent_done: done with %"PRIu32" users\n", state->num_users); TALLOC_FREE(state->cli->pwent_state); tevent_req_done(req); @@ -102,7 +102,7 @@ static void winbindd_getpwent_done(struct tevent_req *subreq) } state->num_users += 1; if (state->num_users >= state->max_users) { - D_DEBUG("winbindd_getpwent_done: Got enough users: %u\n", + D_DEBUG("winbindd_getpwent_done: Got enough users: %"PRIu32"\n", state->num_users); tevent_req_done(req); return; @@ -135,7 +135,7 @@ NTSTATUS winbindd_getpwent_recv(struct tevent_req *req, } D_NOTICE("Winbind external command GETPWENT end.\n" - "Received %u entries.\n" + "Received %"PRIu32" entries.\n" "(name:passwd:uid:gid:gecos:dir:shell)\n", state->num_users); @@ -144,7 +144,7 @@ NTSTATUS winbindd_getpwent_recv(struct tevent_req *req, } for (i = 0; i < state->num_users; i++) { - D_NOTICE("%u: %s:%s:%u:%u:%s:%s:%s\n", + D_NOTICE("%"PRIu32": %s:%s:%u:%u:%s:%s:%s\n", i, state->users[i].pw_name, state->users[i].pw_passwd,