Skip to content

Commit

Permalink
Use enum fmt formatting for RCodes
Browse files Browse the repository at this point in the history
  • Loading branch information
wandernauta committed Mar 28, 2024
1 parent 169bd8b commit 8228f06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dnsmon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ CheckResult DNSChecker::perform()

if((RCode)dmr.dh.rcode != RCode::Noerror) {
return fmt::format("Got DNS response with RCode {} from {} for question {}|{}",
toString((RCode)dmr.dh.rcode), d_qname, d_nsip.toStringWithPort(), d_qtype);
(RCode)dmr.dh.rcode, d_qname, d_nsip.toStringWithPort(), d_qtype);
}

std::unique_ptr<RRGen> rr;
Expand Down Expand Up @@ -329,7 +329,7 @@ CheckResult DNSSOAChecker::perform()

if((RCode)dmr.dh.rcode != RCode::Noerror) {
return fmt::format("Got DNS response with RCode {} for question {}|{}",
toString((RCode)dmr.dh.rcode), d_domain, DNSType::SOA);
(RCode)dmr.dh.rcode, d_domain, DNSType::SOA);
}

std::unique_ptr<RRGen> rr;
Expand Down Expand Up @@ -401,7 +401,7 @@ CheckResult RRSIGChecker::perform()

if((RCode)dmr.dh.rcode != RCode::Noerror) {
return fmt::format("Got DNS response with RCode {} from {} for question {}|{}",
toString((RCode)dmr.dh.rcode), d_qname, d_nsip.toStringWithPort(), d_qtype);
(RCode)dmr.dh.rcode, d_qname, d_nsip.toStringWithPort(), d_qtype);
}

std::unique_ptr<RRGen> rr;
Expand Down

0 comments on commit 8228f06

Please sign in to comment.