From: Charles-Henri Bruyand Date: Thu, 25 Oct 2018 08:42:43 +0000 (+0200) Subject: fix string format issue on 32bits arm X-Git-Tag: dnsdist-1.3.3~27^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d09ee15856d0553e7c31c3edab01929861a3933c;p=thirdparty%2Fpdns.git fix string format issue on 32bits arm --- 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());