summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/Gzip.cpp
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2021-01-23 23:52:21 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-25 09:47:36 +0100
commitbb483f7ef4693582d34aa7a30fa2916fdcc8b6f4 (patch)
treef3c5fe1ff819534ffd94abea15170fbfc07d44a5 /Userland/Libraries/LibCore/Gzip.cpp
parentacdcf59a333b0fe9a709ee53b2a82b26b346b747 (diff)
downloadserenity-bb483f7ef4693582d34aa7a30fa2916fdcc8b6f4.zip
Everywhere: Name debug macros more consistently.
Personally, I prefer the naming convention DEBUG_FOO over FOO_DEBUG, but the majority of the debug macros are already named in the latter naming convention, so I just enforce consistency here. This was done with the following script: find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec sed -i -E 's/DEBUG_PATH/PATH_DEBUG/' {} \;
Diffstat (limited to 'Userland/Libraries/LibCore/Gzip.cpp')
-rw-r--r--Userland/Libraries/LibCore/Gzip.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibCore/Gzip.cpp b/Userland/Libraries/LibCore/Gzip.cpp
index a2fc706cc1..46ea61da20 100644
--- a/Userland/Libraries/LibCore/Gzip.cpp
+++ b/Userland/Libraries/LibCore/Gzip.cpp
@@ -52,7 +52,7 @@ static Optional<ByteBuffer> get_gzip_payload(const ByteBuffer& data)
return data[current++];
};
-#if DEBUG_GZIP
+#if GZIP_DEBUG
dbgln("get_gzip_payload: Skipping over gzip header.");
#endif
@@ -135,7 +135,7 @@ Optional<ByteBuffer> Gzip::decompress(const ByteBuffer& data)
source.data(), &source_len);
if (puff_ret == 0) {
-#if DEBUG_GZIP
+#if GZIP_DEBUG
dbgln("Gzip::decompress: Decompression success.");
#endif
destination.trim(destination_len);
@@ -144,7 +144,7 @@ Optional<ByteBuffer> Gzip::decompress(const ByteBuffer& data)
if (puff_ret == 1) {
// FIXME: Find a better way of decompressing without needing to try over and over again.
-#if DEBUG_GZIP
+#if GZIP_DEBUG
dbgln("Gzip::decompress: Output buffer exhausted. Growing.");
#endif
destination.grow(destination.size() * 2);