From 607880cbd389f008e40a0143d97dff6395782e91 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 21 Feb 2024 09:32:02 -0500 Subject: [PATCH] LibGfx/JPEGLoader: Add dbgln_if() when hitting unsupported marker --- Userland/Libraries/LibGfx/ImageFormats/JPEGLoader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Userland/Libraries/LibGfx/ImageFormats/JPEGLoader.cpp b/Userland/Libraries/LibGfx/ImageFormats/JPEGLoader.cpp index e952fe909f..195545e9c4 100644 --- a/Userland/Libraries/LibGfx/ImageFormats/JPEGLoader.cpp +++ b/Userland/Libraries/LibGfx/ImageFormats/JPEGLoader.cpp @@ -904,6 +904,7 @@ static inline ErrorOr read_marker_at_cursor(JPEGStream& stream) if (is_supported_marker(marker)) return marker; + dbgln_if(JPEG_DEBUG, "Unsupported marker: {:#04x} around offset {:#x}", marker, stream.byte_offset()); return Error::from_string_literal("Reached an unsupported marker"); }