diff options
| author | Petr Cech <pcech@redhat.com> | 2015-07-08 07:17:28 -0400 |
|---|---|---|
| committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-08-31 18:30:19 +0200 |
| commit | 11e8f3ecdddf8edd8b1bbe9f41b49ce8b709b92a (patch) | |
| tree | cc5ae37861c5fb0efdb3e8dfd88bbdd543ab92b9 /src/util/sss_cli_cmd.h | |
| parent | bdf422fde0fd6b40b3412bad3b200f8fd7ea8693 (diff) | |
| download | sssd-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/util/sss_cli_cmd.h')
| -rw-r--r-- | src/util/sss_cli_cmd.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/util/sss_cli_cmd.h b/src/util/sss_cli_cmd.h new file mode 100644 index 00000000..66ad076b --- /dev/null +++ b/src/util/sss_cli_cmd.h @@ -0,0 +1,28 @@ +/* + SSSD - cmd2str util + + Copyright (C) Petr Cech <pcech@redhat.com> 2015 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef __SSS_CLI_CMD_H__ +#define __SSS_CLI_CMD_H__ + +#include "sss_client/sss_cli.h" + +/* Translate sss_cli_command to human readable form. */ +const char *sss_cmd2str(enum sss_cli_command cmd); + +#endif /* __SSS_CLI_CMD_H__ */ |
