>From 804d0845270d42bd228fdbed0a3ba5387fb667fb Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Sat, 13 Jul 2013 15:25:47 +0200 Subject: [PATCH 02/16] Fix formating of variables with type: long --- src/krb5_plugin/sssd_krb5_locator_plugin.c | 2 +- src/providers/krb5/krb5_child.c | 2 +- src/providers/krb5/krb5_common.c | 2 +- src/providers/ldap/ldap_auth.c | 2 +- src/providers/ldap/ldap_common.c | 2 +- src/providers/ldap/sdap_access.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/krb5_plugin/sssd_krb5_locator_plugin.c b/src/krb5_plugin/sssd_krb5_locator_plugin.c index 402fd03e7e45644c65581c7c6f14fe8d7bf2e894..725687ddcf559e251ee54d1005f862bd6d0af4f8 100644 --- a/src/krb5_plugin/sssd_krb5_locator_plugin.c +++ b/src/krb5_plugin/sssd_krb5_locator_plugin.c @@ -171,7 +171,7 @@ static int get_krb5info(const char *realm, struct sssd_ctx *ctx, } if (port < 0 || port > 65535) { - PLUGIN_DEBUG(("Illegal port number [%d], assuming default.\n", + PLUGIN_DEBUG(("Illegal port number [%ld], assuming default.\n", port)); port = 0; } diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index 47c8fb29f947e04875cd4da63c557a695012e56b..7314dc46eec36ca9b7c194c3e4db0112c1669458 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 0e1c10becf177051282a99685dadbf37e0b61e7b..d2afbef9f96e8f7eac2970ef00febc28103e5cf7 100644 --- a/src/providers/krb5/krb5_common.c +++ b/src/providers/krb5/krb5_common.c @@ -556,7 +556,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 ea28ba66b09d6ef8bafb65c51af67e4b3d384908..bf14c2b87f7d5555f6f1818134f7591a1178fa40 100644 --- a/src/providers/ldap/ldap_auth.c +++ b/src/providers/ldap/ldap_auth.c @@ -115,7 +115,7 @@ 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] " + DEBUG(9, ("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)); diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c index 9aa98173c865d0b032f02bd6a0ec80b93682af6d..086e910f0a76e106587159e79dbc378873478ed6 100644 --- a/src/providers/ldap/ldap_common.c +++ b/src/providers/ldap/ldap_common.c @@ -1597,7 +1597,7 @@ 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", + DEBUG(1, ("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 53df7b0eeb3bb2bdbede6c126fb004658dea2656..7a571e3c493d7dfd023409b78d161af2fe34a38d 100644 --- a/src/providers/ldap/sdap_access.c +++ b/src/providers/ldap/sdap_access.c @@ -433,7 +433,7 @@ 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] " + DEBUG(9, ("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)); -- 1.8.3.1