Skip to content

Commit 8228f06

Browse files
committed
Use enum fmt formatting for RCodes
1 parent 169bd8b commit 8228f06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dnsmon.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ CheckResult DNSChecker::perform()
239239

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

245245
std::unique_ptr<RRGen> rr;
@@ -329,7 +329,7 @@ CheckResult DNSSOAChecker::perform()
329329

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

335335
std::unique_ptr<RRGen> rr;
@@ -401,7 +401,7 @@ CheckResult RRSIGChecker::perform()
401401

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

407407
std::unique_ptr<RRGen> rr;

0 commit comments

Comments
 (0)