diff options
author | asynts <asynts@gmail.com> | 2021-01-09 18:51:44 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-09 21:11:09 +0100 |
commit | 938e5c7719ee546538bdfc44339b6c561b45edc9 (patch) | |
tree | 098bcb7d707e3a5e747eb5d5bc7381bb2146d67a /Libraries/LibCore/Gzip.cpp | |
parent | 40b8e2111595affb0a6ad8eb643c8f730f7a3c77 (diff) | |
download | serenity-938e5c7719ee546538bdfc44339b6c561b45edc9.zip |
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it
easier to find potentially introduced bugs with git bisect.Everything:
The modifications in this commit were automatically made using the
following command:
find . -name '*.cpp' -exec sed -i -E 's/dbg\(\) << ("[^"{]*");/dbgln\(\1\);/' {} \;
Diffstat (limited to 'Libraries/LibCore/Gzip.cpp')
-rw-r--r-- | Libraries/LibCore/Gzip.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Libraries/LibCore/Gzip.cpp b/Libraries/LibCore/Gzip.cpp index 4b5b868460..268e9a4702 100644 --- a/Libraries/LibCore/Gzip.cpp +++ b/Libraries/LibCore/Gzip.cpp @@ -55,12 +55,12 @@ static Optional<ByteBuffer> get_gzip_payload(const ByteBuffer& data) }; #ifdef DEBUG_GZIP - dbg() << "get_gzip_payload: Skipping over gzip header."; + dbgln("get_gzip_payload: Skipping over gzip header."); #endif // Magic Header if (read_byte() != 0x1F || read_byte() != 0x8B) { - dbg() << "get_gzip_payload: Wrong magic number."; + dbgln("get_gzip_payload: Wrong magic number."); return Optional<ByteBuffer>(); } @@ -85,21 +85,21 @@ static Optional<ByteBuffer> get_gzip_payload(const ByteBuffer& data) // FNAME if (flags & 8) { - dbg() << "get_gzip_payload: Header has FNAME flag set."; + dbgln("get_gzip_payload: Header has FNAME flag set."); while (read_byte() != '\0') ; } // FCOMMENT if (flags & 16) { - dbg() << "get_gzip_payload: Header has FCOMMENT flag set."; + dbgln("get_gzip_payload: Header has FCOMMENT flag set."); while (read_byte() != '\0') ; } // FHCRC if (flags & 2) { - dbg() << "get_gzip_payload: Header has FHCRC flag set."; + dbgln("get_gzip_payload: Header has FHCRC flag set."); current += 2; } @@ -142,7 +142,7 @@ Optional<ByteBuffer> Gzip::decompress(const ByteBuffer& data) if (puff_ret == 0) { #ifdef DEBUG_GZIP - dbg() << "Gzip::decompress: Decompression success."; + dbgln("Gzip::decompress: Decompression success."); #endif destination.trim(destination_len); break; @@ -151,7 +151,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. #ifdef DEBUG_GZIP - dbg() << "Gzip::decompress: Output buffer exhausted. Growing."; + dbgln("Gzip::decompress: Output buffer exhausted. Growing."); #endif destination.grow(destination.size() * 2); } else { |