LibGfx/JPEGLoader: Print offset in an error dbgln() in hex

This commit is contained in:
Nico Weber 2024-02-21 09:31:35 -05:00 committed by Andreas Kling
parent 24a469f521
commit 95391fafcb
Notes: sideshowbarker 2024-07-17 18:38:54 +09:00

View File

@ -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();
}