]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
fix string format issue on 32bits arm 7104/head
authorCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Thu, 25 Oct 2018 08:42:43 +0000 (10:42 +0200)
committerCharles-Henri Bruyand <charles-henri.bruyand@open-xchange.com>
Thu, 25 Oct 2018 08:42:43 +0000 (10:42 +0200)
pdns/dnsdist-cache.cc

index f9162e16b729fb71b117fb89fa1ecc0d7aef5c2a..6c84357a55859e57c408d42867687bc70be239c3 100644 (file)
@@ -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<int64_t>(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<int64_t>(value.validity - now), QType(value.qtype).getName().c_str(), entry.first, value.len, value.tcp, static_cast<int64_t>(value.added));
       }
       catch(...) {
         fprintf(fp, "; error printing '%s'\n", value.qname.empty() ? "EMPTY" : value.qname.toString().c_str());