Преглед на файлове

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

Maciej преди 3 години
родител
ревизия
303be38f65
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Kernel/Net/Routing.cpp

+ 1 - 1
Kernel/Net/Routing.cpp

@@ -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);