1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:47:35 +00:00

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

View file

@ -834,7 +834,7 @@ static ErrorOr<void> decode_huffman_stream(JPEGLoadingContext& context, Vector<M
if (result.is_error()) { if (result.is_error()) {
if constexpr (JPEG_DEBUG) { if constexpr (JPEG_DEBUG) {
dbgln("Failed to build Macroblock {}: {}", number_of_mcus_decoded_so_far, result.error()); 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(); return result.release_error();
} }