Suppress eccessive VLQ debugging

This commit is contained in:
Gioacchino Mazzurco 2020-03-25 22:21:05 +01:00
parent d7f23ce21c
commit 0187bf2f2f
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -966,8 +966,8 @@ protected:
#pragma GCC diagnostic ignored "-Wbool-compare"
while(member > 127) { ++ret; member >>= 7; }
#pragma GCC diagnostic pop
RsDbg() << __PRETTY_FUNCTION__ << " memberBackup: " << memberBackup
<< " return: " << ret << std::endl;
Dbg2() << __PRETTY_FUNCTION__ << " memberBackup: " << memberBackup
<< " return: " << ret << std::endl;
return ret;
}
@ -1007,6 +1007,7 @@ protected:
<< " member " << member
<< " size: " << size
<< " offset: " << offset
<< " backupMember: " << backupMember
<< std::error_condition(std::errc::no_buffer_space)
<< std::endl;
print_stacktrace();
@ -1015,12 +1016,12 @@ protected:
data[offset++] = static_cast<uint8_t>(member & 127);
RsDbg() << __PRETTY_FUNCTION__ << " backupMember: " << backupMember
<< " offsetBackup: " << offsetBackup << " offeset: " << offset
<< " serialized as: ";
Dbg3() << __PRETTY_FUNCTION__ << " backupMember: " << backupMember
<< " offsetBackup: " << offsetBackup << " offeset: " << offset
<< " serialized as: ";
for(; offsetBackup < offset; ++offsetBackup)
std::cerr << " " << std::bitset<8>(data[offsetBackup]);
std::cerr << std::endl;
Dbg3().uStream() << " " << std::bitset<8>(data[offsetBackup]);
Dbg3().uStream() << std::endl;
return ok;
}