1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:27:35 +00:00

LookupServer: Use dbgln_if instead of #if

Also adds a missing AK::Formatter specialisation for DNSName, required
for the debug calls to actually work (!)
This commit is contained in:
Ali Mohammad Pur 2021-04-21 15:44:15 +04:30 committed by Linus Groh
parent 36c17d5371
commit c4f682606a
2 changed files with 16 additions and 13 deletions

View file

@ -56,3 +56,11 @@ private:
OutputStream& operator<<(OutputStream& stream, const DNSName&);
}
template<>
struct AK::Formatter<LookupServer::DNSName> : Formatter<StringView> {
void format(FormatBuilder& builder, const LookupServer::DNSName& value)
{
return Formatter<StringView>::format(builder, value.as_string());
}
};