From: Pavel Filipenský Date: Mon, 18 Jul 2022 13:28:10 +0000 (+0200) Subject: s3:winbind: Add additional debug level check to wb_lookupsids_send() X-Git-Tag: tevent-0.13.0~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1a897f1b718493a0b78154ef5214dc0d298fcd98;p=thirdparty%2Fsamba.git s3:winbind: Add additional debug level check to wb_lookupsids_send() Signed-off-by: Pavel Filipenský Reviewed-by: Andreas Schneider Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Thu Jul 21 14:41:53 UTC 2022 on sn-devel-184 --- 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) {