summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2021-01-23 23:45:29 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-25 09:47:36 +0100
commitacdcf59a333b0fe9a709ee53b2a82b26b346b747 (patch)
tree88d7ab0c97a5b5174331ba0d7d7a9071ebac04cc /Kernel
parent1a3a0836c017ab5e5672472033f3ff369dc33c39 (diff)
downloadserenity-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')
-rw-r--r--Kernel/ACPI/MultiProcessorParser.cpp2
-rw-r--r--Kernel/Devices/KeyboardDevice.cpp2
-rw-r--r--Kernel/Devices/PS2MouseDevice.cpp2
-rw-r--r--Kernel/Devices/SB16.cpp2
-rw-r--r--Kernel/Devices/USB/UHCIController.cpp3
-rw-r--r--Kernel/Devices/VMWareBackdoor.cpp2
-rw-r--r--Kernel/FileSystem/BlockBasedFileSystem.cpp2
-rw-r--r--Kernel/FileSystem/Ext2FileSystem.cpp3
-rw-r--r--Kernel/FileSystem/FIFO.cpp2
-rw-r--r--Kernel/FileSystem/ProcFS.cpp2
-rw-r--r--Kernel/FileSystem/VirtualFileSystem.cpp2
-rw-r--r--Kernel/Heap/kmalloc.h2
-rw-r--r--Kernel/Interrupts/APIC.cpp3
-rw-r--r--Kernel/Interrupts/IOAPIC.cpp2
-rw-r--r--Kernel/Interrupts/IRQHandler.cpp2
-rw-r--r--Kernel/Interrupts/SharedIRQHandler.cpp1
-rw-r--r--Kernel/Net/E1000NetworkAdapter.cpp2
-rw-r--r--Kernel/Net/IPv4Socket.cpp2
-rw-r--r--Kernel/Net/LocalSocket.cpp2
-rw-r--r--Kernel/Net/NetworkTask.cpp9
-rw-r--r--Kernel/Net/RTL8139NetworkAdapter.cpp2
-rw-r--r--Kernel/Net/Routing.cpp2
-rw-r--r--Kernel/Net/Socket.cpp2
-rw-r--r--Kernel/Net/TCPSocket.cpp2
-rw-r--r--Kernel/PCI/Access.cpp2
-rw-r--r--Kernel/PCI/Definitions.h2
-rw-r--r--Kernel/PCI/MMIOAccess.cpp2
-rw-r--r--Kernel/Process.cpp5
-rw-r--r--Kernel/Scheduler.cpp4
-rw-r--r--Kernel/Storage/IDEChannel.cpp2
-rw-r--r--Kernel/Storage/PATADiskDevice.cpp2
-rw-r--r--Kernel/Storage/Partition/DiskPartition.cpp2
-rw-r--r--Kernel/Storage/StorageDevice.cpp2
-rw-r--r--Kernel/Syscalls/execve.cpp2
-rw-r--r--Kernel/TTY/TTY.cpp2
-rw-r--r--Kernel/ThreadBlockers.cpp2
-rw-r--r--Kernel/Time/HPET.cpp2
-rw-r--r--Kernel/Time/TimeManagement.cpp2
-rw-r--r--Kernel/VM/MemoryManager.cpp2
-rw-r--r--Kernel/VM/PurgeablePageRanges.cpp3
40 files changed, 0 insertions, 95 deletions
diff --git a/Kernel/ACPI/MultiProcessorParser.cpp b/Kernel/ACPI/MultiProcessorParser.cpp
index 295c945ddb..bc6340ea54 100644
--- a/Kernel/ACPI/MultiProcessorParser.cpp
+++ b/Kernel/ACPI/MultiProcessorParser.cpp
@@ -34,8 +34,6 @@
#include <Kernel/VM/MemoryManager.h>
#include <Kernel/VM/TypedMapping.h>
-//#define MULTIPROCESSOR_DEBUG
-
namespace Kernel {
OwnPtr<MultiProcessorParser> MultiProcessorParser::autodetect()
diff --git a/Kernel/Devices/KeyboardDevice.cpp b/Kernel/Devices/KeyboardDevice.cpp
index 2c244b1794..a1cbf9ac53 100644
--- a/Kernel/Devices/KeyboardDevice.cpp
+++ b/Kernel/Devices/KeyboardDevice.cpp
@@ -34,8 +34,6 @@
#include <Kernel/IO.h>
#include <Kernel/TTY/VirtualConsole.h>
-//#define KEYBOARD_DEBUG
-
namespace Kernel {
#define IRQ_KEYBOARD 1
diff --git a/Kernel/Devices/PS2MouseDevice.cpp b/Kernel/Devices/PS2MouseDevice.cpp
index bd7023f536..3792017bd7 100644
--- a/Kernel/Devices/PS2MouseDevice.cpp
+++ b/Kernel/Devices/PS2MouseDevice.cpp
@@ -49,8 +49,6 @@ namespace Kernel {
#define PS2MOUSE_INTELLIMOUSE_ID 0x03
#define PS2MOUSE_INTELLIMOUSE_EXPLORER_ID 0x04
-//#define PS2MOUSE_DEBUG
-
static AK::Singleton<PS2MouseDevice> s_the;
PS2MouseDevice::PS2MouseDevice()
diff --git a/Kernel/Devices/SB16.cpp b/Kernel/Devices/SB16.cpp
index c9d1abb7c5..8d479394f4 100644
--- a/Kernel/Devices/SB16.cpp
+++ b/Kernel/Devices/SB16.cpp
@@ -33,8 +33,6 @@
#include <Kernel/VM/AnonymousVMObject.h>
#include <Kernel/VM/MemoryManager.h>
-//#define SB16_DEBUG
-
namespace Kernel {
#define SB16_DEFAULT_IRQ 5
diff --git a/Kernel/Devices/USB/UHCIController.cpp b/Kernel/Devices/USB/UHCIController.cpp
index 2268dbcd49..be74f1581f 100644
--- a/Kernel/Devices/USB/UHCIController.cpp
+++ b/Kernel/Devices/USB/UHCIController.cpp
@@ -33,9 +33,6 @@
#include <Kernel/VM/MemoryManager.h>
#define UHCI_ENABLED 1
-//#define UHCI_DEBUG
-//#define UHCI_VERBOSE_DEBUG
-
static constexpr u8 MAXIMUM_NUMBER_OF_TDS = 128; // Upper pool limit. This consumes the second page we have allocated
static constexpr u8 MAXIMUM_NUMBER_OF_QHS = 64;
diff --git a/Kernel/Devices/VMWareBackdoor.cpp b/Kernel/Devices/VMWareBackdoor.cpp
index 2066ccef7b..378a6da33d 100644
--- a/Kernel/Devices/VMWareBackdoor.cpp
+++ b/Kernel/Devices/VMWareBackdoor.cpp
@@ -53,8 +53,6 @@ namespace Kernel {
#define VMWARE_PORT 0x5658
#define VMWARE_PORT_HIGHBANDWIDTH 0x5659
-//#define VMWAREBACKDOOR_DEBUG
-
inline void vmware_out(VMWareCommand& command)
{
command.magic = VMWARE_MAGIC;
diff --git a/Kernel/FileSystem/BlockBasedFileSystem.cpp b/Kernel/FileSystem/BlockBasedFileSystem.cpp
index 7496fc728e..b8ff056af3 100644
--- a/Kernel/FileSystem/BlockBasedFileSystem.cpp
+++ b/Kernel/FileSystem/BlockBasedFileSystem.cpp
@@ -28,8 +28,6 @@
#include <Kernel/FileSystem/BlockBasedFileSystem.h>
#include <Kernel/Process.h>
-//#define BBFS_DEBUG
-
namespace Kernel {
struct CacheEntry {
diff --git a/Kernel/FileSystem/Ext2FileSystem.cpp b/Kernel/FileSystem/Ext2FileSystem.cpp
index 505046f4a9..91e6399d2c 100644
--- a/Kernel/FileSystem/Ext2FileSystem.cpp
+++ b/Kernel/FileSystem/Ext2FileSystem.cpp
@@ -37,9 +37,6 @@
#include <Kernel/UnixTypes.h>
#include <LibC/errno_numbers.h>
-//#define EXT2_DEBUG
-//#define EXT2_VERY_DEBUG
-
namespace Kernel {
static const size_t max_link_count = 65535;
diff --git a/Kernel/FileSystem/FIFO.cpp b/Kernel/FileSystem/FIFO.cpp
index d45de8d150..a1d889e51b 100644
--- a/Kernel/FileSystem/FIFO.cpp
+++ b/Kernel/FileSystem/FIFO.cpp
@@ -34,8 +34,6 @@
#include <Kernel/Process.h>
#include <Kernel/Thread.h>
-//#define FIFO_DEBUG
-
namespace Kernel {
static AK::Singleton<Lockable<HashTable<FIFO*>>> s_table;
diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp
index 0d1d8218c3..d2eacf4e52 100644
--- a/Kernel/FileSystem/ProcFS.cpp
+++ b/Kernel/FileSystem/ProcFS.cpp
@@ -61,8 +61,6 @@
#include <Kernel/VM/MemoryManager.h>
#include <LibC/errno_numbers.h>
-//#define PROCFS_DEBUG
-
namespace Kernel {
enum ProcParentDirectory {
diff --git a/Kernel/FileSystem/VirtualFileSystem.cpp b/Kernel/FileSystem/VirtualFileSystem.cpp
index 1a7b50a549..b62f620550 100644
--- a/Kernel/FileSystem/VirtualFileSystem.cpp
+++ b/Kernel/FileSystem/VirtualFileSystem.cpp
@@ -38,8 +38,6 @@
#include <Kernel/Process.h>
#include <LibC/errno_numbers.h>
-//#define VFS_DEBUG
-
namespace Kernel {
static AK::Singleton<VFS> s_the;
diff --git a/Kernel/Heap/kmalloc.h b/Kernel/Heap/kmalloc.h
index 3cd093844a..e43adb60cc 100644
--- a/Kernel/Heap/kmalloc.h
+++ b/Kernel/Heap/kmalloc.h
@@ -28,8 +28,6 @@
#include <AK/Types.h>
-//#define KMALLOC_DEBUG_LARGE_ALLOCATIONS
-
#define KMALLOC_SCRUB_BYTE 0xbb
#define KFREE_SCRUB_BYTE 0xaa
diff --git a/Kernel/Interrupts/APIC.cpp b/Kernel/Interrupts/APIC.cpp
index 87baac04eb..c37fa2701d 100644
--- a/Kernel/Interrupts/APIC.cpp
+++ b/Kernel/Interrupts/APIC.cpp
@@ -41,9 +41,6 @@
#include <Kernel/VM/PageDirectory.h>
#include <Kernel/VM/TypedMapping.h>
-//#define APIC_DEBUG
-//#define APIC_SMP_DEBUG
-
#define IRQ_APIC_TIMER (0xfc - IRQ_VECTOR_BASE)
#define IRQ_APIC_IPI (0xfd - IRQ_VECTOR_BASE)
#define IRQ_APIC_ERR (0xfe - IRQ_VECTOR_BASE)
diff --git a/Kernel/Interrupts/IOAPIC.cpp b/Kernel/Interrupts/IOAPIC.cpp
index ca46c09984..980c0fb444 100644
--- a/Kernel/Interrupts/IOAPIC.cpp
+++ b/Kernel/Interrupts/IOAPIC.cpp
@@ -34,8 +34,6 @@
#include <Kernel/Interrupts/InterruptManagement.h>
#include <Kernel/VM/MemoryManager.h>
-//#define IOAPIC_DEBUG
-
#define IOAPIC_REDIRECTION_ENTRY_OFFSET 0x10
namespace Kernel {
enum DeliveryMode {
diff --git a/Kernel/Interrupts/IRQHandler.cpp b/Kernel/Interrupts/IRQHandler.cpp
index 658fc0d355..e764fe7c37 100644
--- a/Kernel/Interrupts/IRQHandler.cpp
+++ b/Kernel/Interrupts/IRQHandler.cpp
@@ -29,8 +29,6 @@
#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/Interrupts/InterruptManagement.h>
-//#define IRQ_DEBUG
-
namespace Kernel {
IRQHandler::IRQHandler(u8 irq)
diff --git a/Kernel/Interrupts/SharedIRQHandler.cpp b/Kernel/Interrupts/SharedIRQHandler.cpp
index 7667a4a477..465596cad8 100644
--- a/Kernel/Interrupts/SharedIRQHandler.cpp
+++ b/Kernel/Interrupts/SharedIRQHandler.cpp
@@ -32,7 +32,6 @@
#include <Kernel/Interrupts/PIC.h>
#include <Kernel/Interrupts/SharedIRQHandler.h>
-//#define INTERRUPT_DEBUG
namespace Kernel {
void SharedIRQHandler::initialize(u8 interrupt_number)
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)
diff --git a/Kernel/PCI/Access.cpp b/Kernel/PCI/Access.cpp
index d82142eb1a..d4e16fb78b 100644
--- a/Kernel/PCI/Access.cpp
+++ b/Kernel/PCI/Access.cpp
@@ -29,8 +29,6 @@
#include <Kernel/PCI/Access.h>
#include <Kernel/PCI/IOAccess.h>
-//#define PCI_DEBUG
-
namespace Kernel {
namespace PCI {
diff --git a/Kernel/PCI/Definitions.h b/Kernel/PCI/Definitions.h
index 0f655470e0..4f823a1874 100644
--- a/Kernel/PCI/Definitions.h
+++ b/Kernel/PCI/Definitions.h
@@ -70,8 +70,6 @@ namespace Kernel {
#define PCI_MAX_FUNCTIONS_PER_DEVICE 8
// clang-format on
-//#define PCI_DEBUG 1
-
namespace PCI {
struct ID {
u16 vendor_id { 0 };
diff --git a/Kernel/PCI/MMIOAccess.cpp b/Kernel/PCI/MMIOAccess.cpp
index d7fa97f6bb..11844d39bd 100644
--- a/Kernel/PCI/MMIOAccess.cpp
+++ b/Kernel/PCI/MMIOAccess.cpp
@@ -30,8 +30,6 @@
#include <Kernel/PCI/MMIOAccess.h>
#include <Kernel/VM/MemoryManager.h>
-//#define PCI_DEBUG
-
namespace Kernel {
namespace PCI {
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index e76bdd3167..14c7b69bcc 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -56,11 +56,6 @@
#include <LibC/errno_numbers.h>
#include <LibC/limits.h>
-//#define DEBUG_IO
-//#define DEBUG_POLL_SELECT
-//#define PROCESS_DEBUG
-//#define SIGNAL_DEBUG
-
namespace Kernel {
static void create_signal_trampolines();
diff --git a/Kernel/Scheduler.cpp b/Kernel/Scheduler.cpp
index a55e6af3f9..05490139d5 100644
--- a/Kernel/Scheduler.cpp
+++ b/Kernel/Scheduler.cpp
@@ -36,10 +36,6 @@
#include <Kernel/Time/TimeManagement.h>
#include <Kernel/TimerQueue.h>
-//#define LOG_EVERY_CONTEXT_SWITCH
-//#define SCHEDULER_DEBUG
-//#define SCHEDULER_RUNNABLE_DEBUG
-
namespace Kernel {
class SchedulerPerProcessorData {
diff --git a/Kernel/Storage/IDEChannel.cpp b/Kernel/Storage/IDEChannel.cpp
index 4a2af72c0b..bd3aff2513 100644
--- a/Kernel/Storage/IDEChannel.cpp
+++ b/Kernel/Storage/IDEChannel.cpp
@@ -40,8 +40,6 @@ namespace Kernel {
#define PATA_PRIMARY_IRQ 14
#define PATA_SECONDARY_IRQ 15
-//#define PATA_DEBUG
-
#define ATA_SR_BSY 0x80
#define ATA_SR_DRDY 0x40
#define ATA_SR_DF 0x20
diff --git a/Kernel/Storage/PATADiskDevice.cpp b/Kernel/Storage/PATADiskDevice.cpp
index 4236f88430..143dbf2d22 100644
--- a/Kernel/Storage/PATADiskDevice.cpp
+++ b/Kernel/Storage/PATADiskDevice.cpp
@@ -24,8 +24,6 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-//#define PATA_DEVICE_DEBUG
-
#include <AK/Memory.h>
#include <AK/StringView.h>
#include <Kernel/FileSystem/FileDescription.h>
diff --git a/Kernel/Storage/Partition/DiskPartition.cpp b/Kernel/Storage/Partition/DiskPartition.cpp
index 2e35690ff0..b0236036ff 100644
--- a/Kernel/Storage/Partition/DiskPartition.cpp
+++ b/Kernel/Storage/Partition/DiskPartition.cpp
@@ -27,8 +27,6 @@
#include <Kernel/FileSystem/FileDescription.h>
#include <Kernel/Storage/Partition/DiskPartition.h>
-// #define OFFD_DEBUG
-
namespace Kernel {
NonnullRefPtr<DiskPartition> DiskPartition::create(BlockDevice& device, unsigned minor_number, DiskPartitionMetadata metadata)
diff --git a/Kernel/Storage/StorageDevice.cpp b/Kernel/Storage/StorageDevice.cpp
index 210b14603c..9b7c87470e 100644
--- a/Kernel/Storage/StorageDevice.cpp
+++ b/Kernel/Storage/StorageDevice.cpp
@@ -24,8 +24,6 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-//#define STORAGE_DEVICE_DEBUG
-
#include <AK/Memory.h>
#include <AK/StringView.h>
#include <Kernel/FileSystem/FileDescription.h>
diff --git a/Kernel/Syscalls/execve.cpp b/Kernel/Syscalls/execve.cpp
index 1c66a48db1..4b97a4c7f4 100644
--- a/Kernel/Syscalls/execve.cpp
+++ b/Kernel/Syscalls/execve.cpp
@@ -44,8 +44,6 @@
#include <LibELF/Image.h>
#include <LibELF/Validation.h>
-//#define EXEC_DEBUG
-
namespace Kernel {
static Vector<ELF::AuxiliaryValue> generate_auxiliary_vector(FlatPtr load_base, FlatPtr entry_eip, uid_t uid, uid_t euid, gid_t gid, gid_t egid, String executable_path, int main_program_fd);
diff --git a/Kernel/TTY/TTY.cpp b/Kernel/TTY/TTY.cpp
index 2ffcdaefb3..ffa73260dc 100644
--- a/Kernel/TTY/TTY.cpp
+++ b/Kernel/TTY/TTY.cpp
@@ -32,8 +32,6 @@
#include <LibC/signal_numbers.h>
#include <LibC/sys/ioctl_numbers.h>
-//#define TTY_DEBUG
-
namespace Kernel {
TTY::TTY(unsigned major, unsigned minor)
diff --git a/Kernel/ThreadBlockers.cpp b/Kernel/ThreadBlockers.cpp
index b8cee3387c..a68447c7d2 100644
--- a/Kernel/ThreadBlockers.cpp
+++ b/Kernel/ThreadBlockers.cpp
@@ -31,8 +31,6 @@
#include <Kernel/Scheduler.h>
#include <Kernel/Thread.h>
-//#define WAITBLOCK_DEBUG
-
namespace Kernel {
bool Thread::Blocker::set_block_condition(Thread::BlockCondition& block_condition, void* data)
diff --git a/Kernel/Time/HPET.cpp b/Kernel/Time/HPET.cpp
index ad6cb7537e..f44ebc2a8b 100644
--- a/Kernel/Time/HPET.cpp
+++ b/Kernel/Time/HPET.cpp
@@ -40,8 +40,6 @@ namespace Kernel {
#define NANOSECOND_PERIOD_TO_HERTZ(x) 1000000000 / x
#define MEGAHERTZ_TO_HERTZ(x) (x / 1000000)
-//#define HPET_DEBUG
-
namespace HPETFlags {
enum class Attributes {
Counter64BitCapable = 1 << 13,
diff --git a/Kernel/Time/TimeManagement.cpp b/Kernel/Time/TimeManagement.cpp
index 85068d5660..d4e4992e67 100644
--- a/Kernel/Time/TimeManagement.cpp
+++ b/Kernel/Time/TimeManagement.cpp
@@ -41,8 +41,6 @@
#include <Kernel/TimerQueue.h>
#include <Kernel/VM/MemoryManager.h>
-//#define TIME_DEBUG
-
namespace Kernel {
static AK::Singleton<TimeManagement> s_the;
diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp
index 1180592f85..d06bc2623a 100644
--- a/Kernel/VM/MemoryManager.cpp
+++ b/Kernel/VM/MemoryManager.cpp
@@ -41,8 +41,6 @@
#include <Kernel/VM/PhysicalRegion.h>
#include <Kernel/VM/SharedInodeVMObject.h>
-//#define PAGE_FAULT_DEBUG
-
extern u8* start_of_kernel_image;
extern u8* end_of_kernel_image;
extern FlatPtr start_of_kernel_text;
diff --git a/Kernel/VM/PurgeablePageRanges.cpp b/Kernel/VM/PurgeablePageRanges.cpp
index 45e9f580d1..109dd20091 100644
--- a/Kernel/VM/PurgeablePageRanges.cpp
+++ b/Kernel/VM/PurgeablePageRanges.cpp
@@ -32,9 +32,6 @@
#include <Kernel/VM/PhysicalPage.h>
#include <Kernel/VM/PurgeablePageRanges.h>
-//#define PAGE_FAULT_DEBUG
-//#define VOLATILE_PAGE_RANGES_DEBUG
-
namespace Kernel {
#ifdef VOLATILE_PAGE_RANGES_DEBUG