summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-11-07 18:16:25 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-11-14 17:11:15 +0100
commit3a97c85760f8bc11eff59d2acd937ab62022ed2a (patch)
tree473e198530bb1b17b46c35926a5381d22ae10ab9 /src
parent7379170a0860790f2739e07fffe3d6ec85264566 (diff)
downloadsssd-3a97c85760f8bc11eff59d2acd937ab62022ed2a.tar.gz
sssd-3a97c85760f8bc11eff59d2acd937ab62022ed2a.tar.bz2
sssd-3a97c85760f8bc11eff59d2acd937ab62022ed2a.zip
sudo: print how many rules we are refreshing or returning
Diffstat (limited to 'src')
-rw-r--r--src/responder/sudo/sudosrv_get_sudorules.c7
1 files changed, 4 insertions, 3 deletions
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);