mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:47:35 +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:
parent
40b8e21115
commit
938e5c7719
95 changed files with 331 additions and 331 deletions
|
@ -357,7 +357,7 @@ static bool decode_frame(GIFLoadingContext& context, size_t frame_index)
|
|||
Optional<u16> code = decoder.next_code();
|
||||
if (!code.has_value()) {
|
||||
#ifdef GIF_DEBUG
|
||||
dbg() << "Unexpectedly reached end of gif frame data";
|
||||
dbgln("Unexpectedly reached end of gif frame data");
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
@ -506,7 +506,7 @@ static bool load_gif_frame_descriptors(GIFLoadingContext& context)
|
|||
if (extension_type == 0xF9) {
|
||||
if (sub_block.size() != 4) {
|
||||
#ifdef GIF_DEBUG
|
||||
dbg() << "Unexpected graphic control size";
|
||||
dbgln("Unexpected graphic control size");
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
|
@ -536,7 +536,7 @@ static bool load_gif_frame_descriptors(GIFLoadingContext& context)
|
|||
|
||||
if (sub_block[11] != 1) {
|
||||
#ifdef GIF_DEBUG
|
||||
dbg() << "Unexpected application extension format";
|
||||
dbgln("Unexpected application extension format");
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -273,7 +273,7 @@ static Optional<u8> get_next_symbol(HuffmanStreamState& hstream, const HuffmanTa
|
|||
}
|
||||
|
||||
#ifdef JPG_DEBUG
|
||||
dbg() << "If you're seeing this...the jpeg decoder needs to support more kinds of JPEGs!";
|
||||
dbgln("If you're seeing this...the jpeg decoder needs to support more kinds of JPEGs!");
|
||||
#endif
|
||||
return {};
|
||||
}
|
||||
|
|
|
@ -528,7 +528,7 @@ static bool decode_png_header(PNGLoadingContext& context)
|
|||
|
||||
if (!context.data || context.data_size < sizeof(png_header)) {
|
||||
#ifdef PNG_DEBUG
|
||||
dbg() << "Missing PNG header";
|
||||
dbgln("Missing PNG header");
|
||||
#endif
|
||||
context.state = PNGLoadingContext::State::Error;
|
||||
return false;
|
||||
|
@ -536,7 +536,7 @@ static bool decode_png_header(PNGLoadingContext& context)
|
|||
|
||||
if (memcmp(context.data, png_header, sizeof(png_header)) != 0) {
|
||||
#ifdef PNG_DEBUG
|
||||
dbg() << "Invalid PNG header";
|
||||
dbgln("Invalid PNG header");
|
||||
#endif
|
||||
context.state = PNGLoadingContext::State::Error;
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue