From 3a97c85760f8bc11eff59d2acd937ab62022ed2a Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Wed, 7 Nov 2012 18:16:25 +0100 Subject: sudo: print how many rules we are refreshing or returning --- src/responder/sudo/sudosrv_get_sudorules.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/responder/sudo') diff --git a/src/responder/sudo/sudosrv_get_sudorules.c b/src/responder/sudo/sudosrv_get_sudorules.c index 6d6b95d3..f79d47dc 100644 --- a/src/responder/sudo/sudosrv_get_sudorules.c +++ b/src/responder/sudo/sudosrv_get_sudorules.c @@ -423,7 +423,8 @@ errno_t sudosrv_get_rules(struct sudo_cmd_ctx *cmd_ctx) cmd_ctx->expired_rules_num = expired_rules_num; if (expired_rules_num > 0) { /* refresh expired rules then continue */ - DEBUG(SSSDBG_TRACE_INTERNAL, ("Refreshing expired rules\n")); + DEBUG(SSSDBG_TRACE_INTERNAL, ("Refreshing %d expired rules\n", + expired_rules_num)); dpreq = sss_dp_get_sudoers_send(tmp_ctx, cmd_ctx->cli_ctx->rctx, cmd_ctx->domain, false, SSS_DP_SUDO_REFRESH_RULES, @@ -641,8 +642,8 @@ static errno_t sudosrv_get_sudorules_from_cache(TALLOC_CTX *mem_ctx, goto done; } - DEBUG(SSSDBG_TRACE_FUNC, ("Returning rules for [%s@%s]\n", - debug_name, cmd_ctx->domain->name)); + DEBUG(SSSDBG_TRACE_FUNC, ("Returning %d rules for [%s@%s]\n", + num_rules, debug_name, cmd_ctx->domain->name)); if (_rules != NULL) { *_rules = talloc_steal(mem_ctx, rules); -- cgit