mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
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\);/' {} \;
This commit is contained in:
@@ -63,14 +63,14 @@ OwnPtr<Messages::ImageDecoderServer::DecodeImageResponse> ClientConnection::hand
|
||||
auto encoded_buffer = SharedBuffer::create_from_shbuf_id(message.encoded_shbuf_id());
|
||||
if (!encoded_buffer) {
|
||||
#ifdef IMAGE_DECODER_DEBUG
|
||||
dbg() << "Could not map encoded data buffer";
|
||||
dbgln("Could not map encoded data buffer");
|
||||
#endif
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (message.encoded_size() > (size_t)encoded_buffer->size()) {
|
||||
#ifdef IMAGE_DECODER_DEBUG
|
||||
dbg() << "Encoded buffer is smaller than encoded size";
|
||||
dbgln("Encoded buffer is smaller than encoded size");
|
||||
#endif
|
||||
return nullptr;
|
||||
}
|
||||
@@ -84,7 +84,7 @@ OwnPtr<Messages::ImageDecoderServer::DecodeImageResponse> ClientConnection::hand
|
||||
|
||||
if (!bitmap) {
|
||||
#ifdef IMAGE_DECODER_DEBUG
|
||||
dbg() << "Could not decode image from encoded data";
|
||||
dbgln("Could not decode image from encoded data");
|
||||
#endif
|
||||
return make<Messages::ImageDecoderServer::DecodeImageResponse>(-1, Gfx::IntSize(), (i32)Gfx::BitmapFormat::Invalid, Vector<u32>());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user