From 0dec4a6f2170517122e436c866d0e1ead8316dcb Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Wed, 12 Dec 2018 14:59:13 +0000 Subject: [PATCH] Correct format string, fixing type error in specifier. I was wondering why the error output did appear. --- src/stub.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stub.c b/src/stub.c index 66de58fe..d110cf06 100644 --- a/src/stub.c +++ b/src/stub.c @@ -963,8 +963,9 @@ tls_do_handshake(getdns_upstream *upstream) _getdns_upstream_log(upstream, GETDNS_LOG_UPSTREAM_STATS, ( upstream->tls_fallback_ok - ? GETDNS_LOG_INFO : GETDNS_LOG_ERR), "%-40s : Verify failed : TLS - %s - " - "(%d) \"%s\"\n", upstream->addr_str, + ? GETDNS_LOG_INFO : GETDNS_LOG_ERR), + "%-40s : Verify failed : TLS - %s - " + "(%ld) \"%s\"\n", upstream->addr_str, ( upstream->tls_fallback_ok ? "Tolerated because of Opportunistic profile" : "*Failure*" ),