summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AK/StringImpl.cpp2
-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
-rw-r--r--Userland/Applications/PixelPaint/Image.cpp2
-rw-r--r--Userland/Applications/Spreadsheet/Spreadsheet.cpp2
-rw-r--r--Userland/DevTools/HackStudio/Editor.cpp2
-rw-r--r--Userland/DevTools/HackStudio/Git/DiffViewer.cpp2
-rw-r--r--Userland/DevTools/HackStudio/LanguageServers/Cpp/AutoComplete.cpp2
-rw-r--r--Userland/DevTools/HackStudio/LanguageServers/Shell/AutoComplete.cpp2
-rw-r--r--Userland/DevTools/IPCCompiler/main.cpp2
-rw-r--r--Userland/DevTools/UserspaceEmulator/MallocTracer.cpp2
-rw-r--r--Userland/DevTools/UserspaceEmulator/SoftCPU.cpp2
-rw-r--r--Userland/DynamicLoader/main.cpp2
-rw-r--r--Userland/Libraries/LibC/cxxabi.cpp2
-rw-r--r--Userland/Libraries/LibC/malloc.cpp1
-rw-r--r--Userland/Libraries/LibC/termcap.cpp2
-rw-r--r--Userland/Libraries/LibChess/UCIEndpoint.cpp2
-rw-r--r--Userland/Libraries/LibCore/Command.cpp2
-rw-r--r--Userland/Libraries/LibCore/EventLoop.cpp3
-rw-r--r--Userland/Libraries/LibCrypto/NumberTheory/ModularFunctions.h2
-rw-r--r--Userland/Libraries/LibELF/DynamicLinker.cpp2
-rw-r--r--Userland/Libraries/LibELF/DynamicLoader.cpp2
-rw-r--r--Userland/Libraries/LibELF/DynamicObject.cpp2
-rw-r--r--Userland/Libraries/LibELF/Image.cpp2
-rw-r--r--Userland/Libraries/LibGUI/BoxLayout.cpp2
-rw-r--r--Userland/Libraries/LibGUI/IconView.cpp2
-rw-r--r--Userland/Libraries/LibGUI/Menu.cpp2
-rw-r--r--Userland/Libraries/LibGUI/TextEditor.cpp2
-rw-r--r--Userland/Libraries/LibGUI/TreeView.cpp2
-rw-r--r--Userland/Libraries/LibGUI/Window.cpp2
-rw-r--r--Userland/Libraries/LibGemini/GeminiJob.cpp2
-rw-r--r--Userland/Libraries/LibGfx/ICOLoader.cpp2
-rw-r--r--Userland/Libraries/LibGfx/Painter.cpp2
-rw-r--r--Userland/Libraries/LibHTTP/HttpJob.cpp2
-rw-r--r--Userland/Libraries/LibHTTP/HttpsJob.cpp2
-rw-r--r--Userland/Libraries/LibJS/Heap/Heap.cpp2
-rw-r--r--Userland/Libraries/LibJS/Lexer.cpp2
-rw-r--r--Userland/Libraries/LibJS/Runtime/Object.cpp2
-rw-r--r--Userland/Libraries/LibLine/Editor.cpp2
-rw-r--r--Userland/Libraries/LibPthread/pthread.cpp2
-rw-r--r--Userland/Libraries/LibVT/Terminal.cpp2
-rw-r--r--Userland/Libraries/LibVT/TerminalWidget.cpp2
-rw-r--r--Userland/Libraries/LibWeb/DOM/Node.cpp2
-rw-r--r--Userland/Libraries/LibWeb/HTML/Parser/HTMLDocumentParser.cpp2
-rw-r--r--Userland/Libraries/LibWeb/InProcessWebView.cpp2
-rw-r--r--Userland/Libraries/LibWeb/Layout/FrameBox.cpp2
-rw-r--r--Userland/Services/LookupServer/LookupServer.cpp2
-rw-r--r--Userland/Services/Taskbar/TaskbarWindow.cpp2
-rw-r--r--Userland/Services/WindowServer/EventLoop.cpp2
-rw-r--r--Userland/Services/WindowServer/WindowManager.cpp7
-rw-r--r--Userland/Shell/AST.cpp2
-rw-r--r--Userland/Shell/Shell.cpp2
90 files changed, 0 insertions, 200 deletions
diff --git a/AK/StringImpl.cpp b/AK/StringImpl.cpp
index 4fac3401ca..62c5b27577 100644
--- a/AK/StringImpl.cpp
+++ b/AK/StringImpl.cpp
@@ -31,8 +31,6 @@
#include <AK/StringImpl.h>
#include <AK/kmalloc.h>
-//#define DEBUG_STRINGIMPL
-
#ifdef DEBUG_STRINGIMPL
unsigned g_stringimpl_count;
static HashTable<StringImpl*>* g_all_live_stringimpls;
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
diff --git a/Userland/Applications/PixelPaint/Image.cpp b/Userland/Applications/PixelPaint/Image.cpp
index 01f202cce4..78eebc2b2d 100644
--- a/Userland/Applications/PixelPaint/Image.cpp
+++ b/Userland/Applications/PixelPaint/Image.cpp
@@ -37,8 +37,6 @@
#include <LibGfx/PNGWriter.h>
#include <stdio.h>
-//#define PAINT_DEBUG
-
namespace PixelPaint {
RefPtr<Image> Image::create_with_size(const Gfx::IntSize& size)
diff --git a/Userland/Applications/Spreadsheet/Spreadsheet.cpp b/Userland/Applications/Spreadsheet/Spreadsheet.cpp
index 4fec43e653..de31828a4f 100644
--- a/Userland/Applications/Spreadsheet/Spreadsheet.cpp
+++ b/Userland/Applications/Spreadsheet/Spreadsheet.cpp
@@ -41,8 +41,6 @@
#include <LibJS/Runtime/Function.h>
#include <ctype.h>
-//#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 3c2d3b636b..c1662a0403 100644
--- a/Userland/DevTools/HackStudio/Editor.cpp
+++ b/Userland/DevTools/HackStudio/Editor.cpp
@@ -51,8 +51,6 @@
#include <LibWeb/OutOfProcessWebView.h>
#include <fcntl.h>
-// #define EDITOR_DEBUG
-
namespace HackStudio {
Editor::Editor()
diff --git a/Userland/DevTools/HackStudio/Git/DiffViewer.cpp b/Userland/DevTools/HackStudio/Git/DiffViewer.cpp
index 9633ff6d1d..31b491b737 100644
--- a/Userland/DevTools/HackStudio/Git/DiffViewer.cpp
+++ b/Userland/DevTools/HackStudio/Git/DiffViewer.cpp
@@ -34,8 +34,6 @@
#include <LibGfx/FontDatabase.h>
#include <LibGfx/Palette.h>
-// #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 a6fae1c425..2cc1488f9c 100644
--- a/Userland/DevTools/HackStudio/LanguageServers/Cpp/AutoComplete.cpp
+++ b/Userland/DevTools/HackStudio/LanguageServers/Cpp/AutoComplete.cpp
@@ -28,8 +28,6 @@
#include <AK/HashTable.h>
#include <LibCpp/Lexer.h>
-// #define DEBUG_AUTOCOMPLETE
-
namespace LanguageServers::Cpp {
Vector<GUI::AutocompleteProvider::Entry> 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 89df78365a..28a17b2407 100644
--- a/Userland/DevTools/HackStudio/LanguageServers/Shell/AutoComplete.cpp
+++ b/Userland/DevTools/HackStudio/LanguageServers/Shell/AutoComplete.cpp
@@ -31,8 +31,6 @@
#include <Shell/Parser.h>
#include <Shell/Shell.h>
-// #define DEBUG_AUTOCOMPLETE
-
namespace LanguageServers::Shell {
Vector<GUI::AutocompleteProvider::Entry> AutoComplete::get_suggestions(const String& code, size_t offset)
diff --git a/Userland/DevTools/IPCCompiler/main.cpp b/Userland/DevTools/IPCCompiler/main.cpp
index b060f13c92..bfd998bb31 100644
--- a/Userland/DevTools/IPCCompiler/main.cpp
+++ b/Userland/DevTools/IPCCompiler/main.cpp
@@ -33,8 +33,6 @@
#include <ctype.h>
#include <stdio.h>
-//#define GENERATE_DEBUG_CODE
-
struct Parameter {
Vector<String> attributes;
String type;
diff --git a/Userland/DevTools/UserspaceEmulator/MallocTracer.cpp b/Userland/DevTools/UserspaceEmulator/MallocTracer.cpp
index c2ead0409d..ee8005b998 100644
--- a/Userland/DevTools/UserspaceEmulator/MallocTracer.cpp
+++ b/Userland/DevTools/UserspaceEmulator/MallocTracer.cpp
@@ -32,8 +32,6 @@
#include <mallocdefs.h>
#include <string.h>
-//#define REACHABLE_DEBUG
-
namespace UserspaceEmulator {
MallocTracer::MallocTracer(Emulator& emulator)
diff --git a/Userland/DevTools/UserspaceEmulator/SoftCPU.cpp b/Userland/DevTools/UserspaceEmulator/SoftCPU.cpp
index add134037f..259fecf053 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<ValueWithShadow<u8>>, insn); } \
void SoftCPU::mnemonic##_RM8_CL(const X86::Instruction& insn) { generic_RM8_CL(op<ValueWithShadow<u8>>, insn); } \
diff --git a/Userland/DynamicLoader/main.cpp b/Userland/DynamicLoader/main.cpp
index b2f09bdfa7..452b333a38 100644
--- a/Userland/DynamicLoader/main.cpp
+++ b/Userland/DynamicLoader/main.cpp
@@ -45,8 +45,6 @@
#include <sys/stat.h>
#include <sys/types.h>
-// #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 05978bfe9b..f054e86b84 100644
--- a/Userland/Libraries/LibC/cxxabi.cpp
+++ b/Userland/Libraries/LibC/cxxabi.cpp
@@ -29,8 +29,6 @@
#include <stdlib.h>
#include <sys/internals.h>
-//#define GLOBAL_DTORS_DEBUG
-
extern "C" {
struct __exit_entry {
diff --git a/Userland/Libraries/LibC/malloc.cpp b/Userland/Libraries/LibC/malloc.cpp
index 3d1c4abe2c..dfb815c410 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 1dcc73df68..2422f6638d 100644
--- a/Userland/Libraries/LibC/termcap.cpp
+++ b/Userland/Libraries/LibC/termcap.cpp
@@ -32,8 +32,6 @@
#include <string.h>
#include <termcap.h>
-//#define TERMCAP_DEBUG
-
extern "C" {
char PC;
diff --git a/Userland/Libraries/LibChess/UCIEndpoint.cpp b/Userland/Libraries/LibChess/UCIEndpoint.cpp
index 1b7fc07f54..bc52ee0dcf 100644
--- a/Userland/Libraries/LibChess/UCIEndpoint.cpp
+++ b/Userland/Libraries/LibChess/UCIEndpoint.cpp
@@ -30,8 +30,6 @@
#include <LibCore/EventLoop.h>
#include <LibCore/File.h>
-// #define UCI_DEBUG
-
namespace Chess::UCI {
Endpoint::Endpoint(NonnullRefPtr<Core::IODevice> in, NonnullRefPtr<Core::IODevice> out)
diff --git a/Userland/Libraries/LibCore/Command.cpp b/Userland/Libraries/LibCore/Command.cpp
index e4fb717473..23f9560c46 100644
--- a/Userland/Libraries/LibCore/Command.cpp
+++ b/Userland/Libraries/LibCore/Command.cpp
@@ -35,8 +35,6 @@
#include <sys/wait.h>
#include <unistd.h>
-// #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 daa464dfbe..ecd4c2e7cc 100644
--- a/Userland/Libraries/LibCore/EventLoop.cpp
+++ b/Userland/Libraries/LibCore/EventLoop.cpp
@@ -54,9 +54,6 @@
#include <time.h>
#include <unistd.h>
-//#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 586a5b3e10..8710cd09e8 100644
--- a/Userland/Libraries/LibCrypto/NumberTheory/ModularFunctions.h
+++ b/Userland/Libraries/LibCrypto/NumberTheory/ModularFunctions.h
@@ -29,8 +29,6 @@
#include <AK/Random.h>
#include <LibCrypto/BigInt/UnsignedBigInteger.h>
-//#define NT_DEBUG
-
namespace Crypto {
namespace NumberTheory {
diff --git a/Userland/Libraries/LibELF/DynamicLinker.cpp b/Userland/Libraries/LibELF/DynamicLinker.cpp
index 3513645d07..932ade6482 100644
--- a/Userland/Libraries/LibELF/DynamicLinker.cpp
+++ b/Userland/Libraries/LibELF/DynamicLinker.cpp
@@ -46,8 +46,6 @@
#include <sys/stat.h>
#include <sys/types.h>
-// #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 e7c56a370c..62a6404e95 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 39b06beba2..de0eab9388 100644
--- a/Userland/Libraries/LibELF/DynamicObject.cpp
+++ b/Userland/Libraries/LibELF/DynamicObject.cpp
@@ -33,8 +33,6 @@
#include <stdio.h>
#include <string.h>
-// #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 27bf519353..c4c16e62a0 100644
--- a/Userland/Libraries/LibELF/Image.cpp
+++ b/Userland/Libraries/LibELF/Image.cpp
@@ -32,8 +32,6 @@
#include <LibELF/Image.h>
#include <LibELF/Validation.h>
-//#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 fa532db19a..b9abc69309 100644
--- a/Userland/Libraries/LibGUI/BoxLayout.cpp
+++ b/Userland/Libraries/LibGUI/BoxLayout.cpp
@@ -30,8 +30,6 @@
#include <LibGfx/Orientation.h>
#include <stdio.h>
-//#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 cfb0111329..24d8765a2c 100644
--- a/Userland/Libraries/LibGUI/IconView.cpp
+++ b/Userland/Libraries/LibGUI/IconView.cpp
@@ -34,8 +34,6 @@
#include <LibGUI/ScrollBar.h>
#include <LibGfx/Palette.h>
-//#define DRAGDROP_DEBUG
-
namespace GUI {
IconView::IconView()
diff --git a/Userland/Libraries/LibGUI/Menu.cpp b/Userland/Libraries/LibGUI/Menu.cpp
index 4f5e60f078..01eea20a51 100644
--- a/Userland/Libraries/LibGUI/Menu.cpp
+++ b/Userland/Libraries/LibGUI/Menu.cpp
@@ -32,8 +32,6 @@
#include <LibGUI/WindowServerConnection.h>
#include <LibGfx/Bitmap.h>
-//#define MENU_DEBUG
-
namespace GUI {
static HashMap<int, Menu*>& all_menus()
diff --git a/Userland/Libraries/LibGUI/TextEditor.cpp b/Userland/Libraries/LibGUI/TextEditor.cpp
index 4b7c5d41d9..c0607ee6ee 100644
--- a/Userland/Libraries/LibGUI/TextEditor.cpp
+++ b/Userland/Libraries/LibGUI/TextEditor.cpp
@@ -50,8 +50,6 @@
#include <stdio.h>
#include <unistd.h>
-//#define DEBUG_TEXTEDITOR
-
REGISTER_WIDGET(GUI, TextEditor)
namespace GUI {
diff --git a/Userland/Libraries/LibGUI/TreeView.cpp b/Userland/Libraries/LibGUI/TreeView.cpp
index ca6455024f..b3190bebf2 100644
--- a/Userland/Libraries/LibGUI/TreeView.cpp
+++ b/Userland/Libraries/LibGUI/TreeView.cpp
@@ -32,8 +32,6 @@
#include <LibGfx/Bitmap.h>
#include <LibGfx/Palette.h>
-//#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 ec162bda85..80ea1e641b 100644
--- a/Userland/Libraries/LibGUI/Window.cpp
+++ b/Userland/Libraries/LibGUI/Window.cpp
@@ -45,8 +45,6 @@
#include <stdlib.h>
#include <unistd.h>
-//#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 afba44932d..58811c5528 100644
--- a/Userland/Libraries/LibGemini/GeminiJob.cpp
+++ b/Userland/Libraries/LibGemini/GeminiJob.cpp
@@ -31,8 +31,6 @@
#include <stdio.h>
#include <unistd.h>
-//#define GEMINIJOB_DEBUG
-
namespace Gemini {
void GeminiJob::start()
diff --git a/Userland/Libraries/LibGfx/ICOLoader.cpp b/Userland/Libraries/LibGfx/ICOLoader.cpp
index 031f4e657e..0c5f401163 100644
--- a/Userland/Libraries/LibGfx/ICOLoader.cpp
+++ b/Userland/Libraries/LibGfx/ICOLoader.cpp
@@ -36,8 +36,6 @@
#include <stdio.h>
#include <string.h>
-//#define ICO_DEBUG
-
namespace Gfx {
// FIXME: This is in little-endian order. Maybe need a NetworkOrdered<T> equivalent eventually.
diff --git a/Userland/Libraries/LibGfx/Painter.cpp b/Userland/Libraries/LibGfx/Painter.cpp
index 89dc36b6e9..b38eb1b4eb 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<IntPoint> previous_to)
{
auto diffs = fto - ffrom;
diff --git a/Userland/Libraries/LibHTTP/HttpJob.cpp b/Userland/Libraries/LibHTTP/HttpJob.cpp
index 87db14756d..5c4ef89d13 100644
--- a/Userland/Libraries/LibHTTP/HttpJob.cpp
+++ b/Userland/Libraries/LibHTTP/HttpJob.cpp
@@ -31,8 +31,6 @@
#include <stdio.h>
#include <unistd.h>
-//#define HTTPJOB_DEBUG
-
namespace HTTP {
void HttpJob::start()
{
diff --git a/Userland/Libraries/LibHTTP/HttpsJob.cpp b/Userland/Libraries/LibHTTP/HttpsJob.cpp
index ab12ee971a..baa38981fa 100644
--- a/Userland/Libraries/LibHTTP/HttpsJob.cpp
+++ b/Userland/Libraries/LibHTTP/HttpsJob.cpp
@@ -32,8 +32,6 @@
#include <stdio.h>
#include <unistd.h>
-//#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 8385b8ff1e..54964ae14e 100644
--- a/Userland/Libraries/LibJS/Heap/Heap.cpp
+++ b/Userland/Libraries/LibJS/Heap/Heap.cpp
@@ -37,8 +37,6 @@
#include <LibJS/Runtime/Object.h>
#include <setjmp.h>
-//#define HEAP_DEBUG
-
namespace JS {
Heap::Heap(VM& vm)
diff --git a/Userland/Libraries/LibJS/Lexer.cpp b/Userland/Libraries/LibJS/Lexer.cpp
index 89758ded1c..a5c45fc572 100644
--- a/Userland/Libraries/LibJS/Lexer.cpp
+++ b/Userland/Libraries/LibJS/Lexer.cpp
@@ -31,8 +31,6 @@
#include <ctype.h>
#include <stdio.h>
-//#define LEXER_DEBUG
-
namespace JS {
HashMap<String, TokenType> Lexer::s_keywords;
diff --git a/Userland/Libraries/LibJS/Runtime/Object.cpp b/Userland/Libraries/LibJS/Runtime/Object.cpp
index 87a9d75dd5..699733e00a 100644
--- a/Userland/Libraries/LibJS/Runtime/Object.cpp
+++ b/Userland/Libraries/LibJS/Runtime/Object.cpp
@@ -38,8 +38,6 @@
#include <LibJS/Runtime/StringObject.h>
#include <LibJS/Runtime/Value.h>
-//#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 e173259a57..9a99b6bae4 100644
--- a/Userland/Libraries/LibLine/Editor.cpp
+++ b/Userland/Libraries/LibLine/Editor.cpp
@@ -45,8 +45,6 @@
#include <sys/time.h>
#include <unistd.h>
-// #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 455d05cfb5..d6ce84bc9f 100644
--- a/Userland/Libraries/LibPthread/pthread.cpp
+++ b/Userland/Libraries/LibPthread/pthread.cpp
@@ -38,8 +38,6 @@
#include <time.h>
#include <unistd.h>
-//#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 3001025c5b..fcf2e027ba 100644
--- a/Userland/Libraries/LibVT/Terminal.cpp
+++ b/Userland/Libraries/LibVT/Terminal.cpp
@@ -29,8 +29,6 @@
#include <LibVT/Terminal.h>
#include <string.h>
-//#define TERMINAL_DEBUG
-
namespace VT {
Terminal::Terminal(TerminalClient& client)
diff --git a/Userland/Libraries/LibVT/TerminalWidget.cpp b/Userland/Libraries/LibVT/TerminalWidget.cpp
index 5fe579a2b4..91afd205d2 100644
--- a/Userland/Libraries/LibVT/TerminalWidget.cpp
+++ b/Userland/Libraries/LibVT/TerminalWidget.cpp
@@ -59,8 +59,6 @@
#include <sys/ioctl.h>
#include <unistd.h>
-//#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 9bfe3aecca..ea26fbd761 100644
--- a/Userland/Libraries/LibWeb/DOM/Node.cpp
+++ b/Userland/Libraries/LibWeb/DOM/Node.cpp
@@ -46,8 +46,6 @@
#include <LibWeb/Layout/Node.h>
#include <LibWeb/Layout/TextNode.h>
-//#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 12fea07e4e..4c1a6555cf 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 <AK/Debug.h>
#include <AK/Utf32View.h>
#include <LibTextCodec/Decoder.h>
diff --git a/Userland/Libraries/LibWeb/InProcessWebView.cpp b/Userland/Libraries/LibWeb/InProcessWebView.cpp
index 84b8dfec07..5dc59f3b8f 100644
--- a/Userland/Libraries/LibWeb/InProcessWebView.cpp
+++ b/Userland/Libraries/LibWeb/InProcessWebView.cpp
@@ -57,8 +57,6 @@
#include <LibWeb/UIEvents/MouseEvent.h>
#include <stdio.h>
-//#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 79ad0e1815..b9e51f475f 100644
--- a/Userland/Libraries/LibWeb/Layout/FrameBox.cpp
+++ b/Userland/Libraries/LibWeb/Layout/FrameBox.cpp
@@ -35,8 +35,6 @@
#include <LibWeb/Layout/InitialContainingBlockBox.h>
#include <LibWeb/Page/Frame.h>
-//#define DEBUG_HIGHLIGHT_FOCUSED_FRAME
-
namespace Web::Layout {
FrameBox::FrameBox(DOM::Document& document, DOM::Element& element, NonnullRefPtr<CSS::StyleProperties> style)
diff --git a/Userland/Services/LookupServer/LookupServer.cpp b/Userland/Services/LookupServer/LookupServer.cpp
index 657cbc23ec..e123e8eef2 100644
--- a/Userland/Services/LookupServer/LookupServer.cpp
+++ b/Userland/Services/LookupServer/LookupServer.cpp
@@ -40,8 +40,6 @@
#include <sys/time.h>
#include <unistd.h>
-//#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 76bd02647d..b84e581ea9 100644
--- a/Userland/Services/Taskbar/TaskbarWindow.cpp
+++ b/Userland/Services/Taskbar/TaskbarWindow.cpp
@@ -41,8 +41,6 @@
#include <serenity.h>
#include <stdio.h>
-//#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 b8fdfcc3be..6b9a20904f 100644
--- a/Userland/Services/WindowServer/EventLoop.cpp
+++ b/Userland/Services/WindowServer/EventLoop.cpp
@@ -42,8 +42,6 @@
#include <time.h>
#include <unistd.h>
-//#define WSMESSAGELOOP_DEBUG
-
namespace WindowServer {
EventLoop::EventLoop()
diff --git a/Userland/Services/WindowServer/WindowManager.cpp b/Userland/Services/WindowServer/WindowManager.cpp
index f4ce58524c..3e2cfeca05 100644
--- a/Userland/Services/WindowServer/WindowManager.cpp
+++ b/Userland/Services/WindowServer/WindowManager.cpp
@@ -52,11 +52,6 @@
#include <time.h>
#include <unistd.h>
-//#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 3bb9acf09a..c6c8b982a0 100644
--- a/Userland/Shell/AST.cpp
+++ b/Userland/Shell/AST.cpp
@@ -36,8 +36,6 @@
#include <fcntl.h>
#include <signal.h>
-//#define EXECUTE_DEBUG
-
void AK::Formatter<Shell::AST::Command>::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 06595a2f0f..e6796c5cac 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