From 57cd3443dcb7c073c5a00a9f2c3c3a3030ae2d3e Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Sat, 13 Jul 2013 15:25:47 +0200 Subject: Fix formating of variables with type: long --- src/providers/ldap/ldap_auth.c | 7 ++++--- src/providers/ldap/ldap_common.c | 5 +++-- src/providers/ldap/sdap_access.c | 7 ++++--- 3 files changed, 11 insertions(+), 8 deletions(-) (limited to 'src/providers/ldap') diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c index e5b63658..dcaea75c 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 f7ad7118..0df5afe8 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 53df7b0e..b381fc40 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")); -- cgit