Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/heimdal/dist/lib/krb5 fix printf format



details:   https://anonhg.NetBSD.org/src/rev/0d2dbc0b3f46
branches:  trunk
changeset: 350986:0d2dbc0b3f46
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 29 18:57:06 2017 +0000

description:
fix printf format

diffstat:

 crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc.c |  16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diffs (31 lines):

diff -r 5c849d063b2d -r 0d2dbc0b3f46 crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc.c
--- a/crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc.c   Sun Jan 29 18:30:33 2017 +0000
+++ b/crypto/external/bsd/heimdal/dist/lib/krb5/send_to_kdc.c   Sun Jan 29 18:57:06 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: send_to_kdc.c,v 1.4 2017/01/28 21:31:49 christos Exp $ */
+/*     $NetBSD: send_to_kdc.c,v 1.5 2017/01/29 18:57:06 christos Exp $ */
 
 /*
  * Copyright (c) 1997 - 2002 Kungliga Tekniska Högskolan
@@ -1246,12 +1246,16 @@
     }
 
     _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: %jd.%06ld nr: %jd.%06ld kh: %jd.%06ld tid: %08x",
+               realm, ret, __func__,
                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);
+               (intmax_t)stop_time.tv_sec,
+               (long)stop_time.tv_usec,
+               (intmax_t)ctx->stats.name_resolution.tv_sec,
+               (long)ctx->stats.name_resolution.tv_usec,
+               (intmax_t)ctx->stats.krbhst.tv_sec,
+               (long)ctx->stats.krbhst.tv_usec, ctx->stid);
 
 
     if (freectx)



Home | Main Index | Thread Index | Old Index