diff options
author | asynts <asynts@gmail.com> | 2021-01-23 23:45:29 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-25 09:47:36 +0100 |
commit | acdcf59a333b0fe9a709ee53b2a82b26b346b747 (patch) | |
tree | 88d7ab0c97a5b5174331ba0d7d7a9071ebac04cc /Kernel/Net | |
parent | 1a3a0836c017ab5e5672472033f3ff369dc33c39 (diff) | |
download | serenity-acdcf59a333b0fe9a709ee53b2a82b26b346b747.zip |
Everywhere: Remove unnecessary debug comments.
It would be tempting to uncomment these statements, but that won't work
with the new changes.
This was done with the following commands:
find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec awk -i inplace '$0 !~ /\/\/#define/ { if (!toggle) { print; } else { toggle = !toggle } } ; $0 ~/\/\/#define/ { toggle = 1 }' {} \;
find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec awk -i inplace '$0 !~ /\/\/ #define/ { if (!toggle) { print; } else { toggle = !toggle } } ; $0 ~/\/\/ #define/ { toggle = 1 }' {} \;
Diffstat (limited to 'Kernel/Net')
-rw-r--r-- | Kernel/Net/E1000NetworkAdapter.cpp | 2 | ||||
-rw-r--r-- | Kernel/Net/IPv4Socket.cpp | 2 | ||||
-rw-r--r-- | Kernel/Net/LocalSocket.cpp | 2 | ||||
-rw-r--r-- | Kernel/Net/NetworkTask.cpp | 9 | ||||
-rw-r--r-- | Kernel/Net/RTL8139NetworkAdapter.cpp | 2 | ||||
-rw-r--r-- | Kernel/Net/Routing.cpp | 2 | ||||
-rw-r--r-- | Kernel/Net/Socket.cpp | 2 | ||||
-rw-r--r-- | Kernel/Net/TCPSocket.cpp | 2 |
8 files changed, 0 insertions, 23 deletions
diff --git a/Kernel/Net/E1000NetworkAdapter.cpp b/Kernel/Net/E1000NetworkAdapter.cpp index 188f2fec09..4bfc195f0d 100644 --- a/Kernel/Net/E1000NetworkAdapter.cpp +++ b/Kernel/Net/E1000NetworkAdapter.cpp @@ -30,8 +30,6 @@ #include <Kernel/Net/E1000NetworkAdapter.h> #include <Kernel/Thread.h> -//#define E1000_DEBUG - namespace Kernel { // clang-format off diff --git a/Kernel/Net/IPv4Socket.cpp b/Kernel/Net/IPv4Socket.cpp index 2b6ede30ff..ecb5bf596f 100644 --- a/Kernel/Net/IPv4Socket.cpp +++ b/Kernel/Net/IPv4Socket.cpp @@ -43,8 +43,6 @@ #include <LibC/errno_numbers.h> #include <LibC/sys/ioctl_numbers.h> -//#define IPV4_SOCKET_DEBUG - namespace Kernel { static AK::Singleton<Lockable<HashTable<IPv4Socket*>>> s_table; diff --git a/Kernel/Net/LocalSocket.cpp b/Kernel/Net/LocalSocket.cpp index fba7b583de..77db2528f3 100644 --- a/Kernel/Net/LocalSocket.cpp +++ b/Kernel/Net/LocalSocket.cpp @@ -35,8 +35,6 @@ #include <Kernel/UnixTypes.h> #include <LibC/errno_numbers.h> -//#define DEBUG_LOCAL_SOCKET - namespace Kernel { static AK::Singleton<Lockable<InlineLinkedList<LocalSocket>>> s_list; diff --git a/Kernel/Net/NetworkTask.cpp b/Kernel/Net/NetworkTask.cpp index 0951f6d0c9..54344c43a5 100644 --- a/Kernel/Net/NetworkTask.cpp +++ b/Kernel/Net/NetworkTask.cpp @@ -40,15 +40,6 @@ #include <Kernel/Net/UDPSocket.h> #include <Kernel/Process.h> -//#define NETWORK_TASK_DEBUG -//#define ETHERNET_DEBUG -//#define ETHERNET_VERY_DEBUG -//#define ARP_DEBUG -//#define IPV4_DEBUG -//#define ICMP_DEBUG -//#define UDP_DEBUG -//#define TCP_DEBUG - namespace Kernel { static void handle_arp(const EthernetFrameHeader&, size_t frame_size); diff --git a/Kernel/Net/RTL8139NetworkAdapter.cpp b/Kernel/Net/RTL8139NetworkAdapter.cpp index 86cfa77640..c1e4b2a638 100644 --- a/Kernel/Net/RTL8139NetworkAdapter.cpp +++ b/Kernel/Net/RTL8139NetworkAdapter.cpp @@ -28,8 +28,6 @@ #include <Kernel/IO.h> #include <Kernel/Net/RTL8139NetworkAdapter.h> -//#define RTL8139_DEBUG - namespace Kernel { #define REG_MAC 0x00 diff --git a/Kernel/Net/Routing.cpp b/Kernel/Net/Routing.cpp index f9547b247f..edde0bc077 100644 --- a/Kernel/Net/Routing.cpp +++ b/Kernel/Net/Routing.cpp @@ -30,8 +30,6 @@ #include <Kernel/Net/Routing.h> #include <Kernel/Thread.h> -//#define ROUTING_DEBUG - namespace Kernel { static AK::Singleton<Lockable<HashMap<IPv4Address, MACAddress>>> s_arp_table; diff --git a/Kernel/Net/Socket.cpp b/Kernel/Net/Socket.cpp index 2bd9d3f875..bacc5bb7e2 100644 --- a/Kernel/Net/Socket.cpp +++ b/Kernel/Net/Socket.cpp @@ -35,8 +35,6 @@ #include <Kernel/UnixTypes.h> #include <LibC/errno_numbers.h> -//#define SOCKET_DEBUG - namespace Kernel { KResultOr<NonnullRefPtr<Socket>> Socket::create(int domain, int type, int protocol) diff --git a/Kernel/Net/TCPSocket.cpp b/Kernel/Net/TCPSocket.cpp index 9e9b78186e..20714b7e13 100644 --- a/Kernel/Net/TCPSocket.cpp +++ b/Kernel/Net/TCPSocket.cpp @@ -36,8 +36,6 @@ #include <Kernel/Process.h> #include <Kernel/Random.h> -//#define TCP_SOCKET_DEBUG - namespace Kernel { void TCPSocket::for_each(Function<void(const TCPSocket&)> callback) |