diff options
Diffstat (limited to 'Kernel/Net/Routing.cpp')
-rw-r--r-- | Kernel/Net/Routing.cpp | 8 |
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()); + } } } |