mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:27:42 +00:00
LibCore: Wrap commented out debug messages in a preprocessor define
We can also remove an outdated FIXME as dbg() does now support unsigned longs :^)
This commit is contained in:
parent
757c14650f
commit
83425b1ac0
1 changed files with 10 additions and 6 deletions
|
@ -31,6 +31,8 @@
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
|
//#define DEBUG_GZIP
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
|
||||||
bool Gzip::is_compressed(const ByteBuffer& data)
|
bool Gzip::is_compressed(const ByteBuffer& data)
|
||||||
|
@ -119,12 +121,14 @@ Optional<ByteBuffer> Gzip::decompress(const ByteBuffer& data)
|
||||||
auto destination = ByteBuffer::create_uninitialized(1024);
|
auto destination = ByteBuffer::create_uninitialized(1024);
|
||||||
while (true) {
|
while (true) {
|
||||||
unsigned long destination_len = destination.size();
|
unsigned long destination_len = destination.size();
|
||||||
// FIXME: dbg() cannot take ulong?
|
|
||||||
// dbg() << "Gzip::decompress: Calling puff()\n"
|
#ifdef DEBUG_GZIP
|
||||||
// << " destination_data = " << destination.data() << "\n"
|
dbg() << "Gzip::decompress: Calling puff()\n"
|
||||||
// << " destination_len = " << (int)destination_len << "\n"
|
<< " destination_data = " << destination.data() << "\n"
|
||||||
// << " source_data = " << source.data() << "\n"
|
<< " destination_len = " << destination_len << "\n"
|
||||||
// << " source_len = " << (int)source_len;
|
<< " source_data = " << source.data() << "\n"
|
||||||
|
<< " source_len = " << source_len;
|
||||||
|
#endif
|
||||||
|
|
||||||
auto puff_ret = puff(
|
auto puff_ret = puff(
|
||||||
destination.data(), &destination_len,
|
destination.data(), &destination_len,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue