summaryrefslogtreecommitdiff
path: root/Kernel/Net/Routing.cpp
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-04-27 00:42:15 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-27 08:59:02 +0200
commit4e6a26cbd23c463db8d700fd850addb74a74d008 (patch)
tree819ad9b7399f28b2816b17ccaacbb7998a35d580 /Kernel/Net/Routing.cpp
parent03569f9686d70293a72db16018c06192d6d252f5 (diff)
downloadserenity-4e6a26cbd23c463db8d700fd850addb74a74d008.zip
Kernel: Silence a few more network dbgln()s
Diffstat (limited to 'Kernel/Net/Routing.cpp')
-rw-r--r--Kernel/Net/Routing.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Kernel/Net/Routing.cpp b/Kernel/Net/Routing.cpp
index 6f2f944fb6..8e434d290c 100644
--- a/Kernel/Net/Routing.cpp
+++ b/Kernel/Net/Routing.cpp
@@ -108,9 +108,11 @@ void update_arp_table(const IPv4Address& ip_addr, const MACAddress& addr)
arp_table().resource().set(ip_addr, addr);
s_arp_table_block_condition->unblock(ip_addr, addr);
- dmesgln("ARP table ({} entries):", arp_table().resource().size());
- for (auto& it : arp_table().resource()) {
- dmesgln("{} :: {}", it.value.to_string(), it.key.to_string());
+ if constexpr (ROUTING_DEBUG) {
+ dmesgln("ARP table ({} entries):", arp_table().resource().size());
+ for (auto& it : arp_table().resource()) {
+ dmesgln("{} :: {}", it.value.to_string(), it.key.to_string());
+ }
}
}