From 96093978748b969665d05b9a614e2688ed9e83d9 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Tue, 31 Jan 2017 11:07:57 -0600 Subject: [PATCH] Misc 64-bit time support (debug message) Originally by Christos Zoulas. Originally used %jd and casts to intmax_t, however, we can't use those on Windows yet. --- lib/krb5/send_to_kdc.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/krb5/send_to_kdc.c b/lib/krb5/send_to_kdc.c index 614e88d87..066b849a7 100644 --- a/lib/krb5/send_to_kdc.c +++ b/lib/krb5/send_to_kdc.c @@ -1244,12 +1244,16 @@ out: } _krb5_debug(context, 1, - "krb5_sendto_context %s done: %d hosts %lu packets %lu wc: %ld.%06ld nr: %ld.%06ld kh: %ld.%06ld tid: %08x", - realm, ret, + "%s %s done: %d hosts: %lu packets: %lu" + " wc: %lld.%06lu nr: %lld.%06lu kh: %lld.%06lu tid: %08x", + __func__, realm, ret, ctx->stats.num_hosts, ctx->stats.sent_packets, - stop_time.tv_sec, (long)stop_time.tv_usec, - ctx->stats.name_resolution.tv_sec, (long)ctx->stats.name_resolution.tv_usec, - ctx->stats.krbhst.tv_sec, (long)ctx->stats.krbhst.tv_usec, ctx->stid); + (long long)stop_time.tv_sec, + (unsigned long)stop_time.tv_usec, + (long long)ctx->stats.name_resolution.tv_sec, + (unsigned long)ctx->stats.name_resolution.tv_usec, + (long long)ctx->stats.krbhst.tv_sec, + (unsigned long)ctx->stats.krbhst.tv_usec, ctx->stid); if (freectx)