mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:17:45 +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:
parent
36c17d5371
commit
c4f682606a
2 changed files with 16 additions and 13 deletions
|
@ -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());
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue