>From ca0e99f62a94a381a00a9f4ca8272363b6c3ed22 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 17 Jul 2013 16:27:43 +0200 Subject: [PATCH 13/20] Fix formating of variables with ber_ type --- src/providers/ldap/sdap_async.c | 2 +- src/providers/ldap/sdap_async_connection.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c index bdd3c3c8b2ed4cc7246c008ddbfe531b82d880bc..09275dd65fe87b792df592cad28ae440435475f8 100644 --- a/src/providers/ldap/sdap_async.c +++ b/src/providers/ldap/sdap_async.c @@ -1424,7 +1424,7 @@ static void sdap_get_generic_ext_done(struct sdap_op *op, tevent_req_error(req, EIO); return; } - DEBUG(7, ("Total count [%lu]\n", total_count)); + DEBUG(SSSDBG_TRACE_INTERNAL, ("Total count [%d]\n", total_count)); if (cookie.bv_val != NULL && cookie.bv_len > 0) { /* Cookie contains data, which means there are more requests diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c index 17d03c3206b61fa442616c57fbc735f87fa6452f..0a7746088906346ea60884484e38457d39e7d933 100644 --- a/src/providers/ldap/sdap_async_connection.c +++ b/src/providers/ldap/sdap_async_connection.c @@ -1987,8 +1987,9 @@ static int synchronous_tls_setup(LDAP *ldap) lret = ldap_result(ldap, msgid, 1, NULL, &result); if (lret != LDAP_RES_EXTENDED) { - DEBUG(2, ("Unexpected ldap_result, expected [%d] got [%d].\n", - LDAP_RES_EXTENDED, lret)); + DEBUG(SSSDBG_OP_FAILURE, + ("Unexpected ldap_result, expected [%lu] got [%d].\n", + LDAP_RES_EXTENDED, lret)); lret = LDAP_PARAM_ERROR; goto done; } -- 1.8.3.1