diff options
author | Pavel Březina <pbrezina@redhat.com> | 2012-11-07 18:16:25 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-11-14 17:33:48 +0100 |
commit | 27b65ed1ad28cd17e0cbe67bb3085d6be6e67ffb (patch) | |
tree | cf0916e2ff0e070a79dfa907fefd35dc8d0c4400 /src/responder | |
parent | 9a27d5d673dc89cc8b99268ebbc5534b96343d69 (diff) | |
download | sssd-27b65ed1ad28cd17e0cbe67bb3085d6be6e67ffb.tar.gz sssd-27b65ed1ad28cd17e0cbe67bb3085d6be6e67ffb.tar.xz sssd-27b65ed1ad28cd17e0cbe67bb3085d6be6e67ffb.zip |
sudo: print how many rules we are refreshing or returning
Diffstat (limited to 'src/responder')
-rw-r--r-- | src/responder/sudo/sudosrv_get_sudorules.c | 7 |
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 6d6b95d3f..f79d47dcb 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); |