diff options
author | Pavel Reichl <preichl@redhat.com> | 2016-01-28 10:47:35 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-02-09 06:11:43 +0100 |
commit | 1fedb90a1d67766da39783eb193f568e9e2d55b0 (patch) | |
tree | fa75f4e82df979a986b8e15ce45fb70f99841ea1 /src/providers/ldap/sdap_async_users.c | |
parent | bf472d2422599d14345e7cd9999289c26455c622 (diff) | |
download | sssd-1fedb90a1d67766da39783eb193f568e9e2d55b0.tar.gz sssd-1fedb90a1d67766da39783eb193f568e9e2d55b0.tar.xz sssd-1fedb90a1d67766da39783eb193f568e9e2d55b0.zip |
SDAP: Add error code to debug message
Reviewed-by: Michal Židek <mzidek@redhat.com>
Diffstat (limited to 'src/providers/ldap/sdap_async_users.c')
-rw-r--r-- | src/providers/ldap/sdap_async_users.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/providers/ldap/sdap_async_users.c b/src/providers/ldap/sdap_async_users.c index 69396aeed..480bbc203 100644 --- a/src/providers/ldap/sdap_async_users.c +++ b/src/providers/ldap/sdap_async_users.c @@ -901,7 +901,8 @@ static void sdap_get_users_done(struct tevent_req *subreq) ret = sdap_search_user_recv(state, subreq, &state->higher_usn, &state->users, &state->count); if (ret) { - DEBUG(SSSDBG_OP_FAILURE, "Failed to retrieve users\n"); + DEBUG(SSSDBG_OP_FAILURE, "Failed to retrieve users [%d][%s].\n", + ret, sss_strerror(ret)); tevent_req_error(req, ret); return; } @@ -911,7 +912,8 @@ static void sdap_get_users_done(struct tevent_req *subreq) state->users, state->count, &state->higher_usn); if (ret) { - DEBUG(SSSDBG_OP_FAILURE, "Failed to store users.\n"); + DEBUG(SSSDBG_OP_FAILURE, "Failed to store users [%d][%s].\n", + ret, sss_strerror(ret)); tevent_req_error(req, ret); return; } |