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/Storage | |
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/Storage')
-rw-r--r-- | Kernel/Storage/IDEChannel.cpp | 2 | ||||
-rw-r--r-- | Kernel/Storage/PATADiskDevice.cpp | 2 | ||||
-rw-r--r-- | Kernel/Storage/Partition/DiskPartition.cpp | 2 | ||||
-rw-r--r-- | Kernel/Storage/StorageDevice.cpp | 2 |
4 files changed, 0 insertions, 8 deletions
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> |