>From f46ef91f4694ae9b805f7e8a1ce8a4efff219304 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Wed, 17 Jul 2013 15:27:20 +0200 Subject: [PATCH 12/16] Fix formating of variables with type: time_t --- src/providers/fail_over.c | 5 +++-- src/providers/krb5/krb5_child_handler.c | 2 +- src/providers/ldap/ldap_auth.c | 2 +- src/providers/ldap/sdap_access.c | 2 +- src/providers/ldap/sdap_async_connection.c | 2 +- src/providers/ldap/sdap_async_sudo_timer.c | 2 +- src/providers/ldap/sdap_sudo.c | 4 ++-- 7 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c index 537a9aa95a13a5d35895d7a310aab6ae758ebc39..98c20065989bad86acff2b9984726a9176089c44 100644 --- a/src/providers/fail_over.c +++ b/src/providers/fail_over.c @@ -154,8 +154,9 @@ fo_context_init(TALLOC_CTX *mem_ctx, struct fo_options *opts) ctx->opts->family_order = opts->family_order; ctx->opts->service_resolv_timeout = opts->service_resolv_timeout; - DEBUG(SSSDBG_TRACE_FUNC, ("Created new fail over context, retry timeout is %d\n", - ctx->opts->retry_timeout)); + DEBUG(SSSDBG_TRACE_FUNC, + ("Created new fail over context, retry timeout is %ld\n", + ctx->opts->retry_timeout)); return ctx; } diff --git a/src/providers/krb5/krb5_child_handler.c b/src/providers/krb5/krb5_child_handler.c index 9aa5c346acde17e1ea74d7a2ab231a6a9eebdb94..aa72c07ce28ef09fa7363d1512742b5c981f435d 100644 --- a/src/providers/krb5/krb5_child_handler.c +++ b/src/providers/krb5/krb5_child_handler.c @@ -564,7 +564,7 @@ parse_krb5_child_response(TALLOC_CTX *mem_ctx, uint8_t *buf, ssize_t len, tgtt.endtime = int64_to_time_t(time_data); SAFEALIGN_COPY_INT64(&time_data, buf+p+3*sizeof(int64_t), NULL); tgtt.renew_till = int64_to_time_t(time_data); - DEBUG(SSSDBG_TRACE_LIBS, ("TGT times are [%d][%d][%d][%d].\n", + DEBUG(SSSDBG_TRACE_LIBS, ("TGT times are [%ld][%ld][%ld][%ld].\n", tgtt.authtime, tgtt.starttime, tgtt.endtime, tgtt.renew_till)); } diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c index dcaea75c0b7833b8a1eb00232ab92ea09f7a7f00..f9bab4b2b72a061c88fbf18d3f8401b673f79619 100644 --- a/src/providers/ldap/ldap_auth.c +++ b/src/providers/ldap/ldap_auth.c @@ -117,7 +117,7 @@ static errno_t check_pwexpire_kerberos(const char *expire_date, time_t now, expire_time -= timezone; DEBUG(SSSDBG_TRACE_ALL, ("Time info: tzname[0] [%s] tzname[1] [%s] timezone [%ld] " - "daylight [%d] now [%d] expire_time [%d].\n", tzname[0], + "daylight [%d] now [%ld] expire_time [%ld].\n", tzname[0], tzname[1], timezone, daylight, now, expire_time)); if (difftime(now, expire_time) > 0.0) { diff --git a/src/providers/ldap/sdap_access.c b/src/providers/ldap/sdap_access.c index a4c6386501d785090a301ae70b9f961bef4b1355..9d1315fab9b838e3f955e82c38ce88a97cb9cd0a 100644 --- a/src/providers/ldap/sdap_access.c +++ b/src/providers/ldap/sdap_access.c @@ -436,7 +436,7 @@ static bool nds_check_expired(const char *exp_time_str) now = time(NULL); DEBUG(SSSDBG_TRACE_ALL, ("Time info: tzname[0] [%s] tzname[1] [%s] timezone [%ld] " - "daylight [%d] now [%d] expire_time [%d].\n", tzname[0], + "daylight [%d] now [%ld] expire_time [%ld].\n", tzname[0], tzname[1], timezone, daylight, now, expire_time)); if (difftime(now, expire_time) > 0.0) { diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c index cc3e13d097d33dc7c44e1f1fecccd152ceb6cf67..17d03c3206b61fa442616c57fbc735f87fa6452f 100644 --- a/src/providers/ldap/sdap_async_connection.c +++ b/src/providers/ldap/sdap_async_connection.c @@ -1773,7 +1773,7 @@ static void sdap_cli_auth_step(struct tevent_req *req) || (state->sh->expire_time > (now + expire_timeout))) { state->sh->expire_time = now + expire_timeout; DEBUG(SSSDBG_TRACE_LIBS, - ("the connection will expire at %d\n", state->sh->expire_time)); + ("the connection will expire at %ld\n", state->sh->expire_time)); } if (!state->do_auth || diff --git a/src/providers/ldap/sdap_async_sudo_timer.c b/src/providers/ldap/sdap_async_sudo_timer.c index ed32cd901bc145b10f3613366b24f29e9100bc11..27dd41f06e0a20c8a672a466535debc45e9f8ea2 100644 --- a/src/providers/ldap/sdap_async_sudo_timer.c +++ b/src/providers/ldap/sdap_async_sudo_timer.c @@ -170,7 +170,7 @@ static void sdap_sudo_timer_timeout(struct tevent_context *ev, state = tevent_req_data(req, struct sdap_sudo_timer_state); DEBUG(SSSDBG_CRIT_FAILURE, ("Request timed out. Is timeout too small?" - " (%ds)!\n", state->timeout)); + " (%lds)!\n", state->timeout)); talloc_zfree(state->subreq); diff --git a/src/providers/ldap/sdap_sudo.c b/src/providers/ldap/sdap_sudo.c index f6fa2347c2cecb3de660f6d8f59e140f76ffa716..b8bc409efd48a6e21f8d4fee2f010c5539b24e32 100644 --- a/src/providers/ldap/sdap_sudo.c +++ b/src/providers/ldap/sdap_sudo.c @@ -227,7 +227,7 @@ static int sdap_sudo_setup_periodical_refresh(struct sdap_sudo_ctx *sudo_ctx) smart_default = id_ctx->opts->basic[SDAP_SUDO_SMART_REFRESH_INTERVAL].def_val.number; DEBUG(SSSDBG_MINOR_FAILURE, ("At least one periodical update has to be " - "enabled. Setting smart refresh interval to default value (%d).\n", + "enabled. Setting smart refresh interval to default value (%ld).\n", smart_default)); ret = dp_opt_set_int(id_ctx->opts->basic, @@ -1072,7 +1072,7 @@ schedule: } DEBUG(SSSDBG_TRACE_FUNC, ("Data provider is offline. " - "Scheduling another full refresh in %lld minutes.\n", delay)); + "Scheduling another full refresh in %ld minutes.\n", delay)); ret = sdap_sudo_schedule_refresh(sudo_ctx, sudo_ctx, SDAP_SUDO_REFRESH_FULL, -- 1.8.3.1