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:
parent
24a469f521
commit
95391fafcb
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue