From 303be38f655b2612fb0788ea5fc217b108dff022 Mon Sep 17 00:00:00 2001 From: Maciej Date: Sat, 9 Jul 2022 11:47:19 +0200 Subject: [PATCH] Kernel/Routing: Hide some leftover debugging under a debug flag --- Kernel/Net/Routing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Net/Routing.cpp b/Kernel/Net/Routing.cpp index a98fc9b80a..5924c5e599 100644 --- a/Kernel/Net/Routing.cpp +++ b/Kernel/Net/Routing.cpp @@ -153,7 +153,7 @@ ErrorOr update_routing_table(IPv4Address const& destination, IPv4Address c } if (update == UpdateTable::Delete) { for (auto& route : table) { - dbgln("candidate: {} {} {} {} {}", route.destination, route.gateway, route.netmask, route.flags, route.adapter); + dbgln_if(ROUTING_DEBUG, "candidate: {} {} {} {} {}", route.destination, route.gateway, route.netmask, route.flags, route.adapter); if (route.matches(*route_entry)) { // FIXME: Remove all entries, not only the first one. table.remove(route);