diff options
author | Pavel Filipenský <pfilipensky@samba.org> | 2022-07-18 15:28:10 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2022-07-21 14:41:53 +0000 |
commit | 1a897f1b718493a0b78154ef5214dc0d298fcd98 (patch) | |
tree | 1ca6d9386fe60d7ada7f986208e3467f9394c3d5 | |
parent | a2f30eede44dddbec24509930cc959e7c04172b6 (diff) | |
download | samba-1a897f1b718493a0b78154ef5214dc0d298fcd98.tar.gz |
s3:winbind: Add additional debug level check to wb_lookupsids_send()
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
-rw-r--r-- | source3/winbindd/wb_lookupsids.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/winbindd/wb_lookupsids.c b/source3/winbindd/wb_lookupsids.c index 3e43834ff07..d0259119731 100644 --- a/source3/winbindd/wb_lookupsids.c +++ b/source3/winbindd/wb_lookupsids.c @@ -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) { |