mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 05:05:32 +03:00
LibGfx/JPEGLoader: Print offset in an error dbgln() in hex
This commit is contained in:
parent
24a469f521
commit
95391fafcb
Notes:
sideshowbarker
2024-07-17 18:38:54 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/95391fafcb Pull-request: https://github.com/SerenityOS/serenity/pull/23291
@ -834,7 +834,7 @@ static ErrorOr<void> decode_huffman_stream(JPEGLoadingContext& context, Vector<M
|
||||
if (result.is_error()) {
|
||||
if constexpr (JPEG_DEBUG) {
|
||||
dbgln("Failed to build Macroblock {}: {}", number_of_mcus_decoded_so_far, result.error());
|
||||
dbgln("Huffman stream byte offset {}", context.stream.byte_offset());
|
||||
dbgln("Huffman stream byte offset {:#x}", context.stream.byte_offset());
|
||||
}
|
||||
return result.release_error();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user