From: Pavel Filipenský Date: Tue, 19 Jul 2022 14:21:57 +0000 (+0200) Subject: s3:winbind: Add additional debug level check to winbindd_getgroups_recv() X-Git-Tag: tevent-0.13.0~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47c48fd020395181e048bdfd47e7c96623ba6793;p=thirdparty%2Fsamba.git s3:winbind: Add additional debug level check to winbindd_getgroups_recv() Signed-off-by: Pavel Filipenský Reviewed-by: Andreas Schneider --- diff --git a/source3/winbindd/winbindd_getgroups.c b/source3/winbindd/winbindd_getgroups.c index da1ce2d9a29..c2603cc7026 100644 --- a/source3/winbindd/winbindd_getgroups.c +++ b/source3/winbindd/winbindd_getgroups.c @@ -267,8 +267,10 @@ NTSTATUS winbindd_getgroups_recv(struct tevent_req *req, D_NOTICE("Winbind external command GETGROUPS end.\n" "Received %"PRIu32" entries.\n", response->data.num_entries); - for (i = 0; i < state->num_gids; i++) { - D_NOTICE("%"PRIu32": GID %u\n", i, state->gids[i]); + if (CHECK_DEBUGLVL(DBGLVL_NOTICE)) { + for (i = 0; i < state->num_gids; i++) { + D_NOTICE("%"PRIu32": GID %u\n", i, state->gids[i]); + } } if (state->num_gids > 0) {