From d09ee15856d0553e7c31c3edab01929861a3933c Mon Sep 17 00:00:00 2001 From: Charles-Henri Bruyand Date: Thu, 25 Oct 2018 10:42:43 +0200 Subject: [PATCH] fix string format issue on 32bits arm --- pdns/dnsdist-cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdist-cache.cc b/pdns/dnsdist-cache.cc index f9162e16b7..6c84357a55 100644 --- a/pdns/dnsdist-cache.cc +++ b/pdns/dnsdist-cache.cc @@ -453,7 +453,7 @@ uint64_t DNSDistPacketCache::dump(int fd) count++; try { - fprintf(fp, "%s %" PRId64 " %s ; key %" PRIu32 ", length %" PRIu16 ", tcp %d, added %" PRIu64 "\n", value.qname.toString().c_str(), static_cast(value.validity - now), QType(value.qtype).getName().c_str(), entry.first, value.len, value.tcp, value.added); + fprintf(fp, "%s %" PRId64 " %s ; key %" PRIu32 ", length %" PRIu16 ", tcp %d, added %" PRId64 "\n", value.qname.toString().c_str(), static_cast(value.validity - now), QType(value.qtype).getName().c_str(), entry.first, value.len, value.tcp, static_cast(value.added)); } catch(...) { fprintf(fp, "; error printing '%s'\n", value.qname.empty() ? "EMPTY" : value.qname.toString().c_str()); -- 2.47.2