summaryrefslogtreecommitdiff
path: root/src/providers/ldap
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-07-17 15:27:20 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-11 19:44:55 +0200
commit937928d1161a4f7bd894cb365ada97569ab0f78f (patch)
tree7b1be73a75759ab8e6e600582879c8d55e01294f /src/providers/ldap
parent69c83119c0504fd1590299b8a4ecdabf86a8f18d (diff)
downloadsssd-937928d1161a4f7bd894cb365ada97569ab0f78f.tar.gz
sssd-937928d1161a4f7bd894cb365ada97569ab0f78f.tar.bz2
sssd-937928d1161a4f7bd894cb365ada97569ab0f78f.zip
Fix formating of variables with type: time_t
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/ldap_auth.c2
-rw-r--r--src/providers/ldap/sdap_access.c2
-rw-r--r--src/providers/ldap/sdap_async_connection.c2
-rw-r--r--src/providers/ldap/sdap_async_sudo_timer.c2
-rw-r--r--src/providers/ldap/sdap_sudo.c4
5 files changed, 6 insertions, 6 deletions
diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c
index dcaea75c..f9bab4b2 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 a4c63865..9d1315fa 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 cc3e13d0..17d03c32 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 ed32cd90..27dd41f0 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 f6fa2347..b8bc409e 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,