summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorPetr Cech <pcech@redhat.com>2015-07-08 07:17:28 -0400
committerJakub Hrozek <jhrozek@redhat.com>2015-08-31 18:30:19 +0200
commit11e8f3ecdddf8edd8b1bbe9f41b49ce8b709b92a (patch)
treecc5ae37861c5fb0efdb3e8dfd88bbdd543ab92b9 /src/tools
parentbdf422fde0fd6b40b3412bad3b200f8fd7ea8693 (diff)
downloadsssd-11e8f3ecdddf8edd8b1bbe9f41b49ce8b709b92a.tar.gz
sssd-11e8f3ecdddf8edd8b1bbe9f41b49ce8b709b92a.tar.xz
sssd-11e8f3ecdddf8edd8b1bbe9f41b49ce8b709b92a.zip
UTIL: Function 2string for enum sss_cli_command
Improvement of debug messages. Instead of:"(0x0400): Running command [17]..." We could see:"(0x0400): Running command [17][SSS_NSS_GETPWNAM]..." (It's not used in sss_client. There are only hex numbers of commands.) Resolves: https://fedorahosted.org/sssd/ticket/2708 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/tools_mc_util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/tools_mc_util.c b/src/tools/tools_mc_util.c
index 65c461093..41d8a6558 100644
--- a/src/tools/tools_mc_util.c
+++ b/src/tools/tools_mc_util.c
@@ -27,6 +27,7 @@
#include "util/util.h"
#include "tools/tools_util.h"
#include "util/mmap_cache.h"
+#include "util/sss_cli_cmd.h"
#include "sss_client/sss_cli.h"
/* This is a copy of sss_mc_set_recycled present in
@@ -260,7 +261,8 @@ static errno_t sss_mc_refresh_ent(const char *name, enum sss_tools_ent ent)
}
if (cmd == SSS_CLI_NULL) {
- DEBUG(SSSDBG_OP_FAILURE, "Unknown object %d to refresh\n", cmd);
+ DEBUG(SSSDBG_OP_FAILURE, "Unknown object [%d][%s] to refresh\n",
+ cmd, sss_cmd2str(cmd));
return EINVAL;
}