Skip to content

Commit

Permalink
make formatter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
phonedph1 committed Sep 19, 2024
1 parent d26cc83 commit 85670d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pdns/dnsdistdist/dnsdist-cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,10 @@ uint64_t DNSDistPacketCache::dump(int fileDesc, bool rawResponse)
fprintf(filePtr.get(), "%s %" PRId64 " %s %s ; ecs %s, rcode %" PRIu8 ", key %" PRIu32 ", length %" PRIu16 ", received over UDP %d, added %" PRId64 ", dnssecOK %d, raw query flags %" PRIu16, value.qname.toString().c_str(), static_cast<int64_t>(value.validity - now), QClass(value.qclass).toString().c_str(), QType(value.qtype).toString().c_str(), value.subnet ? value.subnet.get().toString().c_str() : "empty", rcode, entry.first, value.len, value.receivedOverUDP ? 1 : 0, static_cast<int64_t>(value.added), value.dnssecOK ? 1 : 0, value.queryFlags);

if (rawResponse) {
std::string rawDataResponse = Base64Encode(value.value);
fprintf(filePtr.get(), ", base64response %s", rawDataResponse.c_str());
}
fprintf(filePtr.get(), "\n");
std::string rawDataResponse = Base64Encode(value.value);
fprintf(filePtr.get(), ", base64response %s", rawDataResponse.c_str());
}
fprintf(filePtr.get(), "\n");
}
catch (...) {
fprintf(filePtr.get(), "; error printing '%s'\n", value.qname.empty() ? "EMPTY" : value.qname.toString().c_str());
Expand Down

0 comments on commit 85670d4

Please sign in to comment.