1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

Kernel/Routing: Hide some leftover debugging under a debug flag

This commit is contained in:
Maciej 2022-07-09 11:47:19 +02:00 committed by Idan Horowitz
parent 6f04a3778b
commit 303be38f65

View file

@ -153,7 +153,7 @@ ErrorOr<void> 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);