]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Change '%u' to '%PRIu32' for uint32_t in wb_lookupusergroups.c
authorPavel Filipenský <pfilipensky@samba.org>
Mon, 18 Jul 2022 13:28:10 +0000 (15:28 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 21 Jul 2022 13:47:31 +0000 (13:47 +0000)
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/wb_lookupusergroups.c

index c4ac1be80786be2e51c031c11e2d1587296619e2..7ac1b6e03d23391d9ce80248af24637e273794a1 100644 (file)
@@ -107,12 +107,13 @@ NTSTATUS wb_lookupusergroups_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
        *num_sids = state->sids.num_sids;
        *sids = talloc_move(mem_ctx, &state->sids.sids);
 
-       D_INFO("WB command lookupusergroups end.\nReceived %u SID(s).\n",
+       D_INFO("WB command lookupusergroups end.\nReceived %"PRIu32" SID(s).\n",
               *num_sids);
        if (CHECK_DEBUGLVL(DBGLVL_INFO)) {
                for (i = 0; i < *num_sids; i++) {
                        struct dom_sid_buf buf;
-                       D_INFO("%u: %s\n", i, dom_sid_str_buf(&((*sids)[i]), &buf));
+                       D_INFO("%"PRIu32": %s\n",
+                              i, dom_sid_str_buf(&*sids[i], &buf));
                }
        }
        return NT_STATUS_OK;