diff --git a/AK/StringImpl.cpp b/AK/StringImpl.cpp index 4fac3401ca5..62c5b275778 100644 --- a/AK/StringImpl.cpp +++ b/AK/StringImpl.cpp @@ -31,8 +31,6 @@ #include #include -//#define DEBUG_STRINGIMPL - #ifdef DEBUG_STRINGIMPL unsigned g_stringimpl_count; static HashTable* g_all_live_stringimpls; diff --git a/Kernel/ACPI/MultiProcessorParser.cpp b/Kernel/ACPI/MultiProcessorParser.cpp index 295c945ddb5..bc6340ea542 100644 --- a/Kernel/ACPI/MultiProcessorParser.cpp +++ b/Kernel/ACPI/MultiProcessorParser.cpp @@ -34,8 +34,6 @@ #include #include -//#define MULTIPROCESSOR_DEBUG - namespace Kernel { OwnPtr MultiProcessorParser::autodetect() diff --git a/Kernel/Devices/KeyboardDevice.cpp b/Kernel/Devices/KeyboardDevice.cpp index 2c244b17942..a1cbf9ac531 100644 --- a/Kernel/Devices/KeyboardDevice.cpp +++ b/Kernel/Devices/KeyboardDevice.cpp @@ -34,8 +34,6 @@ #include #include -//#define KEYBOARD_DEBUG - namespace Kernel { #define IRQ_KEYBOARD 1 diff --git a/Kernel/Devices/PS2MouseDevice.cpp b/Kernel/Devices/PS2MouseDevice.cpp index bd7023f5364..3792017bd72 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 s_the; PS2MouseDevice::PS2MouseDevice() diff --git a/Kernel/Devices/SB16.cpp b/Kernel/Devices/SB16.cpp index c9d1abb7c51..8d479394f4b 100644 --- a/Kernel/Devices/SB16.cpp +++ b/Kernel/Devices/SB16.cpp @@ -33,8 +33,6 @@ #include #include -//#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 2268dbcd496..be74f1581f2 100644 --- a/Kernel/Devices/USB/UHCIController.cpp +++ b/Kernel/Devices/USB/UHCIController.cpp @@ -33,9 +33,6 @@ #include #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 2066ccef7bc..378a6da33d5 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 7496fc728ee..b8ff056af3b 100644 --- a/Kernel/FileSystem/BlockBasedFileSystem.cpp +++ b/Kernel/FileSystem/BlockBasedFileSystem.cpp @@ -28,8 +28,6 @@ #include #include -//#define BBFS_DEBUG - namespace Kernel { struct CacheEntry { diff --git a/Kernel/FileSystem/Ext2FileSystem.cpp b/Kernel/FileSystem/Ext2FileSystem.cpp index 505046f4a96..91e6399d2c1 100644 --- a/Kernel/FileSystem/Ext2FileSystem.cpp +++ b/Kernel/FileSystem/Ext2FileSystem.cpp @@ -37,9 +37,6 @@ #include #include -//#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 d45de8d1503..a1d889e51bf 100644 --- a/Kernel/FileSystem/FIFO.cpp +++ b/Kernel/FileSystem/FIFO.cpp @@ -34,8 +34,6 @@ #include #include -//#define FIFO_DEBUG - namespace Kernel { static AK::Singleton>> s_table; diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp index 0d1d8218c39..d2eacf4e528 100644 --- a/Kernel/FileSystem/ProcFS.cpp +++ b/Kernel/FileSystem/ProcFS.cpp @@ -61,8 +61,6 @@ #include #include -//#define PROCFS_DEBUG - namespace Kernel { enum ProcParentDirectory { diff --git a/Kernel/FileSystem/VirtualFileSystem.cpp b/Kernel/FileSystem/VirtualFileSystem.cpp index 1a7b50a5493..b62f6205509 100644 --- a/Kernel/FileSystem/VirtualFileSystem.cpp +++ b/Kernel/FileSystem/VirtualFileSystem.cpp @@ -38,8 +38,6 @@ #include #include -//#define VFS_DEBUG - namespace Kernel { static AK::Singleton s_the; diff --git a/Kernel/Heap/kmalloc.h b/Kernel/Heap/kmalloc.h index 3cd093844a5..e43adb60cc8 100644 --- a/Kernel/Heap/kmalloc.h +++ b/Kernel/Heap/kmalloc.h @@ -28,8 +28,6 @@ #include -//#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 87baac04ebc..c37fa2701dc 100644 --- a/Kernel/Interrupts/APIC.cpp +++ b/Kernel/Interrupts/APIC.cpp @@ -41,9 +41,6 @@ #include #include -//#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 ca46c09984b..980c0fb444f 100644 --- a/Kernel/Interrupts/IOAPIC.cpp +++ b/Kernel/Interrupts/IOAPIC.cpp @@ -34,8 +34,6 @@ #include #include -//#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 658fc0d3553..e764fe7c379 100644 --- a/Kernel/Interrupts/IRQHandler.cpp +++ b/Kernel/Interrupts/IRQHandler.cpp @@ -29,8 +29,6 @@ #include #include -//#define IRQ_DEBUG - namespace Kernel { IRQHandler::IRQHandler(u8 irq) diff --git a/Kernel/Interrupts/SharedIRQHandler.cpp b/Kernel/Interrupts/SharedIRQHandler.cpp index 7667a4a4773..465596cad8f 100644 --- a/Kernel/Interrupts/SharedIRQHandler.cpp +++ b/Kernel/Interrupts/SharedIRQHandler.cpp @@ -32,7 +32,6 @@ #include #include -//#define INTERRUPT_DEBUG namespace Kernel { void SharedIRQHandler::initialize(u8 interrupt_number) diff --git a/Kernel/Net/E1000NetworkAdapter.cpp b/Kernel/Net/E1000NetworkAdapter.cpp index 188f2fec09d..4bfc195f0d1 100644 --- a/Kernel/Net/E1000NetworkAdapter.cpp +++ b/Kernel/Net/E1000NetworkAdapter.cpp @@ -30,8 +30,6 @@ #include #include -//#define E1000_DEBUG - namespace Kernel { // clang-format off diff --git a/Kernel/Net/IPv4Socket.cpp b/Kernel/Net/IPv4Socket.cpp index 2b6ede30ffb..ecb5bf596f9 100644 --- a/Kernel/Net/IPv4Socket.cpp +++ b/Kernel/Net/IPv4Socket.cpp @@ -43,8 +43,6 @@ #include #include -//#define IPV4_SOCKET_DEBUG - namespace Kernel { static AK::Singleton>> s_table; diff --git a/Kernel/Net/LocalSocket.cpp b/Kernel/Net/LocalSocket.cpp index fba7b583def..77db2528f33 100644 --- a/Kernel/Net/LocalSocket.cpp +++ b/Kernel/Net/LocalSocket.cpp @@ -35,8 +35,6 @@ #include #include -//#define DEBUG_LOCAL_SOCKET - namespace Kernel { static AK::Singleton>> s_list; diff --git a/Kernel/Net/NetworkTask.cpp b/Kernel/Net/NetworkTask.cpp index 0951f6d0c9b..54344c43a58 100644 --- a/Kernel/Net/NetworkTask.cpp +++ b/Kernel/Net/NetworkTask.cpp @@ -40,15 +40,6 @@ #include #include -//#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 86cfa776401..c1e4b2a6383 100644 --- a/Kernel/Net/RTL8139NetworkAdapter.cpp +++ b/Kernel/Net/RTL8139NetworkAdapter.cpp @@ -28,8 +28,6 @@ #include #include -//#define RTL8139_DEBUG - namespace Kernel { #define REG_MAC 0x00 diff --git a/Kernel/Net/Routing.cpp b/Kernel/Net/Routing.cpp index f9547b247f8..edde0bc0777 100644 --- a/Kernel/Net/Routing.cpp +++ b/Kernel/Net/Routing.cpp @@ -30,8 +30,6 @@ #include #include -//#define ROUTING_DEBUG - namespace Kernel { static AK::Singleton>> s_arp_table; diff --git a/Kernel/Net/Socket.cpp b/Kernel/Net/Socket.cpp index 2bd9d3f8757..bacc5bb7e22 100644 --- a/Kernel/Net/Socket.cpp +++ b/Kernel/Net/Socket.cpp @@ -35,8 +35,6 @@ #include #include -//#define SOCKET_DEBUG - namespace Kernel { KResultOr> Socket::create(int domain, int type, int protocol) diff --git a/Kernel/Net/TCPSocket.cpp b/Kernel/Net/TCPSocket.cpp index 9e9b78186e0..20714b7e135 100644 --- a/Kernel/Net/TCPSocket.cpp +++ b/Kernel/Net/TCPSocket.cpp @@ -36,8 +36,6 @@ #include #include -//#define TCP_SOCKET_DEBUG - namespace Kernel { void TCPSocket::for_each(Function callback) diff --git a/Kernel/PCI/Access.cpp b/Kernel/PCI/Access.cpp index d82142eb1ac..d4e16fb78b0 100644 --- a/Kernel/PCI/Access.cpp +++ b/Kernel/PCI/Access.cpp @@ -29,8 +29,6 @@ #include #include -//#define PCI_DEBUG - namespace Kernel { namespace PCI { diff --git a/Kernel/PCI/Definitions.h b/Kernel/PCI/Definitions.h index 0f655470e04..4f823a1874d 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 d7fa97f6bba..11844d39bdd 100644 --- a/Kernel/PCI/MMIOAccess.cpp +++ b/Kernel/PCI/MMIOAccess.cpp @@ -30,8 +30,6 @@ #include #include -//#define PCI_DEBUG - namespace Kernel { namespace PCI { diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index e76bdd31679..14c7b69bccf 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -56,11 +56,6 @@ #include #include -//#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 a55e6af3f93..05490139d51 100644 --- a/Kernel/Scheduler.cpp +++ b/Kernel/Scheduler.cpp @@ -36,10 +36,6 @@ #include #include -//#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 4a2af72c0b9..bd3aff2513d 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 4236f88430b..143dbf2d220 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 #include #include diff --git a/Kernel/Storage/Partition/DiskPartition.cpp b/Kernel/Storage/Partition/DiskPartition.cpp index 2e35690ff0f..b0236036fff 100644 --- a/Kernel/Storage/Partition/DiskPartition.cpp +++ b/Kernel/Storage/Partition/DiskPartition.cpp @@ -27,8 +27,6 @@ #include #include -// #define OFFD_DEBUG - namespace Kernel { NonnullRefPtr DiskPartition::create(BlockDevice& device, unsigned minor_number, DiskPartitionMetadata metadata) diff --git a/Kernel/Storage/StorageDevice.cpp b/Kernel/Storage/StorageDevice.cpp index 210b14603c8..9b7c87470eb 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 #include #include diff --git a/Kernel/Syscalls/execve.cpp b/Kernel/Syscalls/execve.cpp index 1c66a48db11..4b97a4c7f4d 100644 --- a/Kernel/Syscalls/execve.cpp +++ b/Kernel/Syscalls/execve.cpp @@ -44,8 +44,6 @@ #include #include -//#define EXEC_DEBUG - namespace Kernel { static Vector 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 2ffcdaefb35..ffa73260dc5 100644 --- a/Kernel/TTY/TTY.cpp +++ b/Kernel/TTY/TTY.cpp @@ -32,8 +32,6 @@ #include #include -//#define TTY_DEBUG - namespace Kernel { TTY::TTY(unsigned major, unsigned minor) diff --git a/Kernel/ThreadBlockers.cpp b/Kernel/ThreadBlockers.cpp index b8cee3387c9..a68447c7d2a 100644 --- a/Kernel/ThreadBlockers.cpp +++ b/Kernel/ThreadBlockers.cpp @@ -31,8 +31,6 @@ #include #include -//#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 ad6cb7537e9..f44ebc2a8b9 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 85068d5660b..d4e4992e67c 100644 --- a/Kernel/Time/TimeManagement.cpp +++ b/Kernel/Time/TimeManagement.cpp @@ -41,8 +41,6 @@ #include #include -//#define TIME_DEBUG - namespace Kernel { static AK::Singleton s_the; diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp index 1180592f85c..d06bc2623ad 100644 --- a/Kernel/VM/MemoryManager.cpp +++ b/Kernel/VM/MemoryManager.cpp @@ -41,8 +41,6 @@ #include #include -//#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 45e9f580d11..109dd20091f 100644 --- a/Kernel/VM/PurgeablePageRanges.cpp +++ b/Kernel/VM/PurgeablePageRanges.cpp @@ -32,9 +32,6 @@ #include #include -//#define PAGE_FAULT_DEBUG -//#define VOLATILE_PAGE_RANGES_DEBUG - namespace Kernel { #ifdef VOLATILE_PAGE_RANGES_DEBUG diff --git a/Userland/Applications/PixelPaint/Image.cpp b/Userland/Applications/PixelPaint/Image.cpp index 01f202cce45..78eebc2b2dd 100644 --- a/Userland/Applications/PixelPaint/Image.cpp +++ b/Userland/Applications/PixelPaint/Image.cpp @@ -37,8 +37,6 @@ #include #include -//#define PAINT_DEBUG - namespace PixelPaint { RefPtr Image::create_with_size(const Gfx::IntSize& size) diff --git a/Userland/Applications/Spreadsheet/Spreadsheet.cpp b/Userland/Applications/Spreadsheet/Spreadsheet.cpp index 4fec43e653c..de31828a4f5 100644 --- a/Userland/Applications/Spreadsheet/Spreadsheet.cpp +++ b/Userland/Applications/Spreadsheet/Spreadsheet.cpp @@ -41,8 +41,6 @@ #include #include -//#define COPY_DEBUG - namespace Spreadsheet { Sheet::Sheet(const StringView& name, Workbook& workbook) diff --git a/Userland/DevTools/HackStudio/Editor.cpp b/Userland/DevTools/HackStudio/Editor.cpp index 3c2d3b636b6..c1662a0403f 100644 --- a/Userland/DevTools/HackStudio/Editor.cpp +++ b/Userland/DevTools/HackStudio/Editor.cpp @@ -51,8 +51,6 @@ #include #include -// #define EDITOR_DEBUG - namespace HackStudio { Editor::Editor() diff --git a/Userland/DevTools/HackStudio/Git/DiffViewer.cpp b/Userland/DevTools/HackStudio/Git/DiffViewer.cpp index 9633ff6d1d4..31b491b7377 100644 --- a/Userland/DevTools/HackStudio/Git/DiffViewer.cpp +++ b/Userland/DevTools/HackStudio/Git/DiffViewer.cpp @@ -34,8 +34,6 @@ #include #include -// #define DEBUG_DIFF - namespace HackStudio { DiffViewer::~DiffViewer() diff --git a/Userland/DevTools/HackStudio/LanguageServers/Cpp/AutoComplete.cpp b/Userland/DevTools/HackStudio/LanguageServers/Cpp/AutoComplete.cpp index a6fae1c425b..2cc1488f9ca 100644 --- a/Userland/DevTools/HackStudio/LanguageServers/Cpp/AutoComplete.cpp +++ b/Userland/DevTools/HackStudio/LanguageServers/Cpp/AutoComplete.cpp @@ -28,8 +28,6 @@ #include #include -// #define DEBUG_AUTOCOMPLETE - namespace LanguageServers::Cpp { Vector AutoComplete::get_suggestions(const String& code, const GUI::TextPosition& autocomplete_position) diff --git a/Userland/DevTools/HackStudio/LanguageServers/Shell/AutoComplete.cpp b/Userland/DevTools/HackStudio/LanguageServers/Shell/AutoComplete.cpp index 89df78365a1..28a17b24075 100644 --- a/Userland/DevTools/HackStudio/LanguageServers/Shell/AutoComplete.cpp +++ b/Userland/DevTools/HackStudio/LanguageServers/Shell/AutoComplete.cpp @@ -31,8 +31,6 @@ #include #include -// #define DEBUG_AUTOCOMPLETE - namespace LanguageServers::Shell { Vector AutoComplete::get_suggestions(const String& code, size_t offset) diff --git a/Userland/DevTools/IPCCompiler/main.cpp b/Userland/DevTools/IPCCompiler/main.cpp index b060f13c92c..bfd998bb314 100644 --- a/Userland/DevTools/IPCCompiler/main.cpp +++ b/Userland/DevTools/IPCCompiler/main.cpp @@ -33,8 +33,6 @@ #include #include -//#define GENERATE_DEBUG_CODE - struct Parameter { Vector attributes; String type; diff --git a/Userland/DevTools/UserspaceEmulator/MallocTracer.cpp b/Userland/DevTools/UserspaceEmulator/MallocTracer.cpp index c2ead0409d8..ee8005b9986 100644 --- a/Userland/DevTools/UserspaceEmulator/MallocTracer.cpp +++ b/Userland/DevTools/UserspaceEmulator/MallocTracer.cpp @@ -32,8 +32,6 @@ #include #include -//#define REACHABLE_DEBUG - namespace UserspaceEmulator { MallocTracer::MallocTracer(Emulator& emulator) diff --git a/Userland/DevTools/UserspaceEmulator/SoftCPU.cpp b/Userland/DevTools/UserspaceEmulator/SoftCPU.cpp index add134037fb..259fecf0534 100644 --- a/Userland/DevTools/UserspaceEmulator/SoftCPU.cpp +++ b/Userland/DevTools/UserspaceEmulator/SoftCPU.cpp @@ -42,8 +42,6 @@ _exit(0); \ } while (0) -//#define MEMORY_DEBUG - #define DEFINE_GENERIC_SHIFT_ROTATE_INSN_HANDLERS(mnemonic, op) \ void SoftCPU::mnemonic##_RM8_1(const X86::Instruction& insn) { generic_RM8_1(op>, insn); } \ void SoftCPU::mnemonic##_RM8_CL(const X86::Instruction& insn) { generic_RM8_CL(op>, insn); } \ diff --git a/Userland/DynamicLoader/main.cpp b/Userland/DynamicLoader/main.cpp index b2f09bdfa79..452b333a38c 100644 --- a/Userland/DynamicLoader/main.cpp +++ b/Userland/DynamicLoader/main.cpp @@ -45,8 +45,6 @@ #include #include -// #define DYNAMIC_LOAD_VERBOSE - #ifdef DYNAMIC_LOAD_VERBOSE # define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__) #else diff --git a/Userland/Libraries/LibC/cxxabi.cpp b/Userland/Libraries/LibC/cxxabi.cpp index 05978bfe9b7..f054e86b848 100644 --- a/Userland/Libraries/LibC/cxxabi.cpp +++ b/Userland/Libraries/LibC/cxxabi.cpp @@ -29,8 +29,6 @@ #include #include -//#define GLOBAL_DTORS_DEBUG - extern "C" { struct __exit_entry { diff --git a/Userland/Libraries/LibC/malloc.cpp b/Userland/Libraries/LibC/malloc.cpp index 3d1c4abe2c5..dfb815c4104 100644 --- a/Userland/Libraries/LibC/malloc.cpp +++ b/Userland/Libraries/LibC/malloc.cpp @@ -40,7 +40,6 @@ // FIXME: Thread safety. -//#define MALLOC_DEBUG #define RECYCLE_BIG_ALLOCATIONS #define PAGE_ROUND_UP(x) ((((size_t)(x)) + PAGE_SIZE - 1) & (~(PAGE_SIZE - 1))) diff --git a/Userland/Libraries/LibC/termcap.cpp b/Userland/Libraries/LibC/termcap.cpp index 1dcc73df68f..2422f6638dd 100644 --- a/Userland/Libraries/LibC/termcap.cpp +++ b/Userland/Libraries/LibC/termcap.cpp @@ -32,8 +32,6 @@ #include #include -//#define TERMCAP_DEBUG - extern "C" { char PC; diff --git a/Userland/Libraries/LibChess/UCIEndpoint.cpp b/Userland/Libraries/LibChess/UCIEndpoint.cpp index 1b7fc07f540..bc52ee0dcf1 100644 --- a/Userland/Libraries/LibChess/UCIEndpoint.cpp +++ b/Userland/Libraries/LibChess/UCIEndpoint.cpp @@ -30,8 +30,6 @@ #include #include -// #define UCI_DEBUG - namespace Chess::UCI { Endpoint::Endpoint(NonnullRefPtr in, NonnullRefPtr out) diff --git a/Userland/Libraries/LibCore/Command.cpp b/Userland/Libraries/LibCore/Command.cpp index e4fb7174736..23f9560c467 100644 --- a/Userland/Libraries/LibCore/Command.cpp +++ b/Userland/Libraries/LibCore/Command.cpp @@ -35,8 +35,6 @@ #include #include -// #define DBG_FAILED_COMMANDS - namespace Core { // Only supported in serenity mode because we use `posix_spawn_file_actions_addchdir` diff --git a/Userland/Libraries/LibCore/EventLoop.cpp b/Userland/Libraries/LibCore/EventLoop.cpp index daa464dfbe8..ecd4c2e7ccb 100644 --- a/Userland/Libraries/LibCore/EventLoop.cpp +++ b/Userland/Libraries/LibCore/EventLoop.cpp @@ -54,9 +54,6 @@ #include #include -//#define EVENTLOOP_DEBUG -//#define DEFERRED_INVOKE_DEBUG - namespace Core { class RPCClient; diff --git a/Userland/Libraries/LibCrypto/NumberTheory/ModularFunctions.h b/Userland/Libraries/LibCrypto/NumberTheory/ModularFunctions.h index 586a5b3e104..8710cd09e8f 100644 --- a/Userland/Libraries/LibCrypto/NumberTheory/ModularFunctions.h +++ b/Userland/Libraries/LibCrypto/NumberTheory/ModularFunctions.h @@ -29,8 +29,6 @@ #include #include -//#define NT_DEBUG - namespace Crypto { namespace NumberTheory { diff --git a/Userland/Libraries/LibELF/DynamicLinker.cpp b/Userland/Libraries/LibELF/DynamicLinker.cpp index 3513645d071..932ade64827 100644 --- a/Userland/Libraries/LibELF/DynamicLinker.cpp +++ b/Userland/Libraries/LibELF/DynamicLinker.cpp @@ -46,8 +46,6 @@ #include #include -// #define DYNAMIC_LOAD_VERBOSE - #ifdef DYNAMIC_LOAD_VERBOSE # define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__) #else diff --git a/Userland/Libraries/LibELF/DynamicLoader.cpp b/Userland/Libraries/LibELF/DynamicLoader.cpp index e7c56a370c2..62a6404e950 100644 --- a/Userland/Libraries/LibELF/DynamicLoader.cpp +++ b/Userland/Libraries/LibELF/DynamicLoader.cpp @@ -40,8 +40,6 @@ # define DYNAMIC_LOAD_DEBUG #endif -// #define DYNAMIC_LOAD_VERBOSE - #ifdef DYNAMIC_LOAD_VERBOSE # define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__) #else diff --git a/Userland/Libraries/LibELF/DynamicObject.cpp b/Userland/Libraries/LibELF/DynamicObject.cpp index 39b06beba22..de0eab9388b 100644 --- a/Userland/Libraries/LibELF/DynamicObject.cpp +++ b/Userland/Libraries/LibELF/DynamicObject.cpp @@ -33,8 +33,6 @@ #include #include -// #define DYNAMIC_OBJECT_VERBOSE - #ifdef DYNAMIC_OBJECT_VERBOSE # define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__) #else diff --git a/Userland/Libraries/LibELF/Image.cpp b/Userland/Libraries/LibELF/Image.cpp index 27bf519353e..c4c16e62a09 100644 --- a/Userland/Libraries/LibELF/Image.cpp +++ b/Userland/Libraries/LibELF/Image.cpp @@ -32,8 +32,6 @@ #include #include -//#define ELF_IMAGE_DEBUG - namespace ELF { Image::Image(ReadonlyBytes bytes, bool verbose_logging) diff --git a/Userland/Libraries/LibGUI/BoxLayout.cpp b/Userland/Libraries/LibGUI/BoxLayout.cpp index fa532db19ae..b9abc693097 100644 --- a/Userland/Libraries/LibGUI/BoxLayout.cpp +++ b/Userland/Libraries/LibGUI/BoxLayout.cpp @@ -30,8 +30,6 @@ #include #include -//#define GBOXLAYOUT_DEBUG - REGISTER_WIDGET(GUI, HorizontalBoxLayout) REGISTER_WIDGET(GUI, VerticalBoxLayout) diff --git a/Userland/Libraries/LibGUI/IconView.cpp b/Userland/Libraries/LibGUI/IconView.cpp index cfb01113298..24d8765a2c1 100644 --- a/Userland/Libraries/LibGUI/IconView.cpp +++ b/Userland/Libraries/LibGUI/IconView.cpp @@ -34,8 +34,6 @@ #include #include -//#define DRAGDROP_DEBUG - namespace GUI { IconView::IconView() diff --git a/Userland/Libraries/LibGUI/Menu.cpp b/Userland/Libraries/LibGUI/Menu.cpp index 4f5e60f078f..01eea20a51c 100644 --- a/Userland/Libraries/LibGUI/Menu.cpp +++ b/Userland/Libraries/LibGUI/Menu.cpp @@ -32,8 +32,6 @@ #include #include -//#define MENU_DEBUG - namespace GUI { static HashMap& all_menus() diff --git a/Userland/Libraries/LibGUI/TextEditor.cpp b/Userland/Libraries/LibGUI/TextEditor.cpp index 4b7c5d41d95..c0607ee6eed 100644 --- a/Userland/Libraries/LibGUI/TextEditor.cpp +++ b/Userland/Libraries/LibGUI/TextEditor.cpp @@ -50,8 +50,6 @@ #include #include -//#define DEBUG_TEXTEDITOR - REGISTER_WIDGET(GUI, TextEditor) namespace GUI { diff --git a/Userland/Libraries/LibGUI/TreeView.cpp b/Userland/Libraries/LibGUI/TreeView.cpp index ca6455024f3..b3190bebf2a 100644 --- a/Userland/Libraries/LibGUI/TreeView.cpp +++ b/Userland/Libraries/LibGUI/TreeView.cpp @@ -32,8 +32,6 @@ #include #include -//#define DEBUG_ITEM_RECTS - REGISTER_WIDGET(GUI, TreeView) namespace GUI { diff --git a/Userland/Libraries/LibGUI/Window.cpp b/Userland/Libraries/LibGUI/Window.cpp index ec162bda850..80ea1e641b5 100644 --- a/Userland/Libraries/LibGUI/Window.cpp +++ b/Userland/Libraries/LibGUI/Window.cpp @@ -45,8 +45,6 @@ #include #include -//#define UPDATE_COALESCING_DEBUG - namespace GUI { static i32 s_next_backing_store_serial; diff --git a/Userland/Libraries/LibGemini/GeminiJob.cpp b/Userland/Libraries/LibGemini/GeminiJob.cpp index afba44932d8..58811c55283 100644 --- a/Userland/Libraries/LibGemini/GeminiJob.cpp +++ b/Userland/Libraries/LibGemini/GeminiJob.cpp @@ -31,8 +31,6 @@ #include #include -//#define GEMINIJOB_DEBUG - namespace Gemini { void GeminiJob::start() diff --git a/Userland/Libraries/LibGfx/ICOLoader.cpp b/Userland/Libraries/LibGfx/ICOLoader.cpp index 031f4e657e4..0c5f401163b 100644 --- a/Userland/Libraries/LibGfx/ICOLoader.cpp +++ b/Userland/Libraries/LibGfx/ICOLoader.cpp @@ -36,8 +36,6 @@ #include #include -//#define ICO_DEBUG - namespace Gfx { // FIXME: This is in little-endian order. Maybe need a NetworkOrdered equivalent eventually. diff --git a/Userland/Libraries/LibGfx/Painter.cpp b/Userland/Libraries/LibGfx/Painter.cpp index 89dc36b6e93..b38eb1b4eb7 100644 --- a/Userland/Libraries/LibGfx/Painter.cpp +++ b/Userland/Libraries/LibGfx/Painter.cpp @@ -1536,8 +1536,6 @@ void Painter::stroke_path(const Path& path, Color color, int thickness) } } -//#define FILL_PATH_DEBUG - [[maybe_unused]] static void approximately_place_on_int_grid(FloatPoint ffrom, FloatPoint fto, IntPoint& from, IntPoint& to, Optional previous_to) { auto diffs = fto - ffrom; diff --git a/Userland/Libraries/LibHTTP/HttpJob.cpp b/Userland/Libraries/LibHTTP/HttpJob.cpp index 87db14756d9..5c4ef89d139 100644 --- a/Userland/Libraries/LibHTTP/HttpJob.cpp +++ b/Userland/Libraries/LibHTTP/HttpJob.cpp @@ -31,8 +31,6 @@ #include #include -//#define HTTPJOB_DEBUG - namespace HTTP { void HttpJob::start() { diff --git a/Userland/Libraries/LibHTTP/HttpsJob.cpp b/Userland/Libraries/LibHTTP/HttpsJob.cpp index ab12ee971ae..baa38981fae 100644 --- a/Userland/Libraries/LibHTTP/HttpsJob.cpp +++ b/Userland/Libraries/LibHTTP/HttpsJob.cpp @@ -32,8 +32,6 @@ #include #include -//#define HTTPSJOB_DEBUG - namespace HTTP { void HttpsJob::start() diff --git a/Userland/Libraries/LibJS/Heap/Heap.cpp b/Userland/Libraries/LibJS/Heap/Heap.cpp index 8385b8ff1e1..54964ae14e1 100644 --- a/Userland/Libraries/LibJS/Heap/Heap.cpp +++ b/Userland/Libraries/LibJS/Heap/Heap.cpp @@ -37,8 +37,6 @@ #include #include -//#define HEAP_DEBUG - namespace JS { Heap::Heap(VM& vm) diff --git a/Userland/Libraries/LibJS/Lexer.cpp b/Userland/Libraries/LibJS/Lexer.cpp index 89758ded1cf..a5c45fc5721 100644 --- a/Userland/Libraries/LibJS/Lexer.cpp +++ b/Userland/Libraries/LibJS/Lexer.cpp @@ -31,8 +31,6 @@ #include #include -//#define LEXER_DEBUG - namespace JS { HashMap Lexer::s_keywords; diff --git a/Userland/Libraries/LibJS/Runtime/Object.cpp b/Userland/Libraries/LibJS/Runtime/Object.cpp index 87a9d75dd58..699733e00a9 100644 --- a/Userland/Libraries/LibJS/Runtime/Object.cpp +++ b/Userland/Libraries/LibJS/Runtime/Object.cpp @@ -38,8 +38,6 @@ #include #include -//#define OBJECT_DEBUG - namespace JS { PropertyDescriptor PropertyDescriptor::from_dictionary(VM& vm, const Object& object) diff --git a/Userland/Libraries/LibLine/Editor.cpp b/Userland/Libraries/LibLine/Editor.cpp index e173259a574..9a99b6bae4d 100644 --- a/Userland/Libraries/LibLine/Editor.cpp +++ b/Userland/Libraries/LibLine/Editor.cpp @@ -45,8 +45,6 @@ #include #include -// #define SUGGESTIONS_DEBUG - namespace { constexpr u32 ctrl(char c) { return c & 0x3f; } } diff --git a/Userland/Libraries/LibPthread/pthread.cpp b/Userland/Libraries/LibPthread/pthread.cpp index 455d05cfb5e..d6ce84bc9fb 100644 --- a/Userland/Libraries/LibPthread/pthread.cpp +++ b/Userland/Libraries/LibPthread/pthread.cpp @@ -38,8 +38,6 @@ #include #include -//#define PTHREAD_DEBUG - namespace { using PthreadAttrImpl = Syscall::SC_create_thread_params; diff --git a/Userland/Libraries/LibVT/Terminal.cpp b/Userland/Libraries/LibVT/Terminal.cpp index 3001025c5b1..fcf2e027ba5 100644 --- a/Userland/Libraries/LibVT/Terminal.cpp +++ b/Userland/Libraries/LibVT/Terminal.cpp @@ -29,8 +29,6 @@ #include #include -//#define TERMINAL_DEBUG - namespace VT { Terminal::Terminal(TerminalClient& client) diff --git a/Userland/Libraries/LibVT/TerminalWidget.cpp b/Userland/Libraries/LibVT/TerminalWidget.cpp index 5fe579a2b4f..91afd205d2f 100644 --- a/Userland/Libraries/LibVT/TerminalWidget.cpp +++ b/Userland/Libraries/LibVT/TerminalWidget.cpp @@ -59,8 +59,6 @@ #include #include -//#define TERMINAL_DEBUG - void TerminalWidget::set_pty_master_fd(int fd) { m_ptm_fd = fd; diff --git a/Userland/Libraries/LibWeb/DOM/Node.cpp b/Userland/Libraries/LibWeb/DOM/Node.cpp index 9bfe3aeccad..ea26fbd7610 100644 --- a/Userland/Libraries/LibWeb/DOM/Node.cpp +++ b/Userland/Libraries/LibWeb/DOM/Node.cpp @@ -46,8 +46,6 @@ #include #include -//#define EVENT_DEBUG - namespace Web::DOM { Node::Node(Document& document, NodeType type) diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLDocumentParser.cpp b/Userland/Libraries/LibWeb/HTML/Parser/HTMLDocumentParser.cpp index 12fea07e4e4..4c1a6555cfd 100644 --- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLDocumentParser.cpp +++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLDocumentParser.cpp @@ -24,8 +24,6 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -//#define PARSER_DEBUG - #include #include #include diff --git a/Userland/Libraries/LibWeb/InProcessWebView.cpp b/Userland/Libraries/LibWeb/InProcessWebView.cpp index 84b8dfec074..5dc59f3b8fc 100644 --- a/Userland/Libraries/LibWeb/InProcessWebView.cpp +++ b/Userland/Libraries/LibWeb/InProcessWebView.cpp @@ -57,8 +57,6 @@ #include #include -//#define SELECTION_DEBUG - REGISTER_WIDGET(Web, InProcessWebView) namespace Web { diff --git a/Userland/Libraries/LibWeb/Layout/FrameBox.cpp b/Userland/Libraries/LibWeb/Layout/FrameBox.cpp index 79ad0e18156..b9e51f475f1 100644 --- a/Userland/Libraries/LibWeb/Layout/FrameBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/FrameBox.cpp @@ -35,8 +35,6 @@ #include #include -//#define DEBUG_HIGHLIGHT_FOCUSED_FRAME - namespace Web::Layout { FrameBox::FrameBox(DOM::Document& document, DOM::Element& element, NonnullRefPtr style) diff --git a/Userland/Services/LookupServer/LookupServer.cpp b/Userland/Services/LookupServer/LookupServer.cpp index 657cbc23ece..e123e8eef24 100644 --- a/Userland/Services/LookupServer/LookupServer.cpp +++ b/Userland/Services/LookupServer/LookupServer.cpp @@ -40,8 +40,6 @@ #include #include -//#define LOOKUPSERVER_DEBUG - LookupServer::LookupServer() { auto config = Core::ConfigFile::get_for_system("LookupServer"); diff --git a/Userland/Services/Taskbar/TaskbarWindow.cpp b/Userland/Services/Taskbar/TaskbarWindow.cpp index 76bd02647d6..b84e581ea9f 100644 --- a/Userland/Services/Taskbar/TaskbarWindow.cpp +++ b/Userland/Services/Taskbar/TaskbarWindow.cpp @@ -41,8 +41,6 @@ #include #include -//#define EVENT_DEBUG - class TaskbarWidget final : public GUI::Widget { C_OBJECT(TaskbarWidget); diff --git a/Userland/Services/WindowServer/EventLoop.cpp b/Userland/Services/WindowServer/EventLoop.cpp index b8fdfcc3be7..6b9a20904f4 100644 --- a/Userland/Services/WindowServer/EventLoop.cpp +++ b/Userland/Services/WindowServer/EventLoop.cpp @@ -42,8 +42,6 @@ #include #include -//#define WSMESSAGELOOP_DEBUG - namespace WindowServer { EventLoop::EventLoop() diff --git a/Userland/Services/WindowServer/WindowManager.cpp b/Userland/Services/WindowServer/WindowManager.cpp index f4ce58524c8..3e2cfeca053 100644 --- a/Userland/Services/WindowServer/WindowManager.cpp +++ b/Userland/Services/WindowServer/WindowManager.cpp @@ -52,11 +52,6 @@ #include #include -//#define WINDOWMANAGER_DEBUG -//#define RESIZE_DEBUG -//#define MOVE_DEBUG -//#define DOUBLECLICK_DEBUG - namespace WindowServer { static WindowManager* s_the; @@ -781,8 +776,6 @@ auto WindowManager::DoubleClickInfo::metadata_for_button(MouseButton button) -> } } -// #define DOUBLECLICK_DEBUG - bool WindowManager::is_considered_doubleclick(const MouseEvent& event, const DoubleClickInfo::ClickMetadata& metadata) const { int elapsed_since_last_click = metadata.clock.elapsed(); diff --git a/Userland/Shell/AST.cpp b/Userland/Shell/AST.cpp index 3bb9acf09a6..c6c8b982a04 100644 --- a/Userland/Shell/AST.cpp +++ b/Userland/Shell/AST.cpp @@ -36,8 +36,6 @@ #include #include -//#define EXECUTE_DEBUG - void AK::Formatter::format(FormatBuilder& builder, const Shell::AST::Command& value) { if (m_sign_mode != FormatBuilder::SignMode::Default) diff --git a/Userland/Shell/Shell.cpp b/Userland/Shell/Shell.cpp index 06595a2f0f8..e6796c5cacf 100644 --- a/Userland/Shell/Shell.cpp +++ b/Userland/Shell/Shell.cpp @@ -56,8 +56,6 @@ static bool s_disable_hyperlinks = false; extern char** environ; -//#define SH_DEBUG - namespace Shell { // FIXME: This should eventually be removed once we've established that