]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:winbind: Add additional debug level check to wb_lookupsids_send()
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 14:41:53 +0000 (14:41 +0000)
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Jul 21 14:41:53 UTC 2022 on sn-devel-184

source3/winbindd/wb_lookupsids.c

index 3e43834ff077baa9b301e9d7e31c1766a9f2adf2..d0259119731a93ad74bcb0364bc2b2fd227b76e2 100644 (file)
@@ -116,11 +116,14 @@ struct tevent_req *wb_lookupsids_send(TALLOC_CTX *mem_ctx,
        struct wb_lookupsids_state *state;
        uint32_t i;
 
-       for (i = 0; i < num_sids; i++) {
-               struct dom_sid_buf buf;
        D_INFO("WB command lookupsids start.\nLooking up %"PRIu32" SID(s)\n",
               num_sids);
-               D_INFO("%"PRIu32": %s\n", i, dom_sid_str_buf(&sids[i], &buf));
+       if (CHECK_DEBUGLVL(DBGLVL_INFO)) {
+               for (i = 0; i < num_sids; i++) {
+                       struct dom_sid_buf buf;
+                       D_INFO("%"PRIu32": %s\n",
+                              i, dom_sid_str_buf(&sids[i], &buf));
+               }
        }
        req = tevent_req_create(mem_ctx, &state, struct wb_lookupsids_state);
        if (req == NULL) {