From: Remi Gacogne Date: Tue, 19 Mar 2024 10:31:52 +0000 (+0100) Subject: dnsdist: Fix clang-tidy warning X-Git-Tag: dnsdist-1.9.2~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13943%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix clang-tidy warning --- diff --git a/pdns/dnsdist-cache.cc b/pdns/dnsdist-cache.cc index 2bcc9e3b86..86c900b6d5 100644 --- a/pdns/dnsdist-cache.cc +++ b/pdns/dnsdist-cache.cc @@ -497,7 +497,7 @@ uint64_t DNSDistPacketCache::dump(int fd) rcode = dh.rcode; } - fprintf(filePtr.get(), "%s %" PRId64 " %s ; rcode %" PRIu8 ", key %" PRIu32 ", length %" PRIu16 ", received over UDP %d, added %" PRId64 "\n", value.qname.toString().c_str(), static_cast(value.validity - now), QType(value.qtype).toString().c_str(), rcode, entry.first, value.len, value.receivedOverUDP, static_cast(value.added)); + fprintf(filePtr.get(), "%s %" PRId64 " %s ; rcode %" PRIu8 ", key %" PRIu32 ", length %" PRIu16 ", received over UDP %d, added %" PRId64 "\n", value.qname.toString().c_str(), static_cast(value.validity - now), QType(value.qtype).toString().c_str(), rcode, entry.first, value.len, static_cast(value.receivedOverUDP), static_cast(value.added)); } catch(...) { fprintf(filePtr.get(), "; error printing '%s'\n", value.qname.empty() ? "EMPTY" : value.qname.toString().c_str());