summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-07-13 15:25:47 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-11 19:44:53 +0200
commit57cd3443dcb7c073c5a00a9f2c3c3a3030ae2d3e (patch)
treecdeeeedebdb764e83f3b7c9e5110231dfcf77163 /src/providers
parentfc6afb011198f84a30e6598c62923b5a588ccd54 (diff)
downloadsssd-57cd3443dcb7c073c5a00a9f2c3c3a3030ae2d3e.tar.gz
sssd-57cd3443dcb7c073c5a00a9f2c3c3a3030ae2d3e.tar.xz
sssd-57cd3443dcb7c073c5a00a9f2c3c3a3030ae2d3e.zip
Fix formating of variables with type: long
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/krb5/krb5_child.c2
-rw-r--r--src/providers/krb5/krb5_common.c2
-rw-r--r--src/providers/ldap/ldap_auth.c7
-rw-r--r--src/providers/ldap/ldap_common.c5
-rw-r--r--src/providers/ldap/sdap_access.c7
5 files changed, 13 insertions, 10 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c
index 4f56736de..8738be163 100644
--- a/src/providers/krb5/krb5_child.c
+++ b/src/providers/krb5/krb5_child.c
@@ -127,7 +127,7 @@ static void sss_krb5_expire_callback_func(krb5_context context, void *data,
DEBUG(1, ("Time to expire out of range.\n"));
return;
}
- DEBUG(SSSDBG_TRACE_INTERNAL, ("exp_time: [%d]\n", exp_time));
+ DEBUG(SSSDBG_TRACE_INTERNAL, ("exp_time: [%ld]\n", exp_time));
blob = talloc_array(kr->pd, uint32_t, 2);
if (blob == NULL) {
diff --git a/src/providers/krb5/krb5_common.c b/src/providers/krb5/krb5_common.c
index dedb734fc..80eaeb56f 100644
--- a/src/providers/krb5/krb5_common.c
+++ b/src/providers/krb5/krb5_common.c
@@ -653,7 +653,7 @@ static errno_t _krb5_servers_init(struct be_ctx *ctx,
}
if (port < 1 || port > 65535) {
- DEBUG(SSSDBG_CRIT_FAILURE, ("Illegal port number [%d].\n", port));
+ DEBUG(SSSDBG_CRIT_FAILURE, ("Illegal port number [%ld].\n", port));
ret = EINVAL;
goto done;
}
diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c
index e5b636581..dcaea75c0 100644
--- a/src/providers/ldap/ldap_auth.c
+++ b/src/providers/ldap/ldap_auth.c
@@ -115,9 +115,10 @@ static errno_t check_pwexpire_kerberos(const char *expire_date, time_t now,
tzset();
expire_time -= timezone;
- DEBUG(9, ("Time info: tzname[0] [%s] tzname[1] [%s] timezone [%d] "
- "daylight [%d] now [%d] expire_time [%d].\n", tzname[0],
- tzname[1], timezone, daylight, now, expire_time));
+ DEBUG(SSSDBG_TRACE_ALL,
+ ("Time info: tzname[0] [%s] tzname[1] [%s] timezone [%ld] "
+ "daylight [%d] now [%d] expire_time [%d].\n", tzname[0],
+ tzname[1], timezone, daylight, now, expire_time));
if (difftime(now, expire_time) > 0.0) {
DEBUG(4, ("Kerberos password expired.\n"));
diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c
index f7ad71182..0df5afe8e 100644
--- a/src/providers/ldap/ldap_common.c
+++ b/src/providers/ldap/ldap_common.c
@@ -1578,8 +1578,9 @@ errno_t string_to_shadowpw_days(const char *s, long *d)
}
if (l < -1) {
- DEBUG(1, ("Input string contains not allowed negative value [%d].\n",
- l));
+ DEBUG(SSSDBG_CRIT_FAILURE,
+ ("Input string contains not allowed negative value [%ld].\n",
+ l));
return EINVAL;
}
diff --git a/src/providers/ldap/sdap_access.c b/src/providers/ldap/sdap_access.c
index 53df7b0ee..b381fc405 100644
--- a/src/providers/ldap/sdap_access.c
+++ b/src/providers/ldap/sdap_access.c
@@ -433,9 +433,10 @@ static bool nds_check_expired(const char *exp_time_str)
tzset();
expire_time -= timezone;
now = time(NULL);
- DEBUG(9, ("Time info: tzname[0] [%s] tzname[1] [%s] timezone [%d] "
- "daylight [%d] now [%d] expire_time [%d].\n", tzname[0],
- tzname[1], timezone, daylight, now, expire_time));
+ DEBUG(SSSDBG_TRACE_ALL,
+ ("Time info: tzname[0] [%s] tzname[1] [%s] timezone [%ld] "
+ "daylight [%d] now [%d] expire_time [%d].\n", tzname[0],
+ tzname[1], timezone, daylight, now, expire_time));
if (difftime(now, expire_time) > 0.0) {
DEBUG(4, ("NDS account expired.\n"));