Skip to content

Commit 935623d

Browse files
Update image-jpeg-xl.c
fixed some debug errors.
1 parent 236dfd5 commit 935623d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cupsfilters/image-jpeg-xl.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ _cf_image_create_from_jxl_decoder(JxlDecoder *decoder)
9090
/* Process decoder events until the full image is decoded. */
9191
while ((status = JxlDecoderProcessInput(decoder)) != JXL_DEC_FULL_IMAGE) {
9292
if (status == JXL_DEC_ERROR) {
93-
DEBUG_printf("DEBUG: _cf_image_create_from_jxl_decoder: JPEG‑XL decoding error. Status: %d\n", status);
93+
DEBUG_printf("DEBUG: _cf_image_create_from_jxl_decoder: JPEG‑XL decoding error.\n");
9494
free(output_buffer);
9595
return NULL;
9696
}
@@ -141,7 +141,6 @@ _cfImageReadJPEGXL(cf_image_t *img, FILE *fp,
141141
}
142142
filesize = ftell(fp);
143143
rewind(fp);
144-
DEBUG_printf("DEBUG: JPEG‑XL: File size: %zu bytes\n", filesize);
145144

146145
data = malloc(filesize);
147146
if (!data) {
@@ -166,7 +165,7 @@ _cfImageReadJPEGXL(cf_image_t *img, FILE *fp,
166165

167166
status = JxlDecoderSetInput(decoder, data, filesize);
168167
if (status != JXL_DEC_SUCCESS) {
169-
DEBUG_printf("DEBUG: JPEG‑XL: Failed to set input buffer. Status: %d\n", status);
168+
DEBUG_printf("DEBUG: JPEG‑XL: Failed to set input buffer.\n");
170169
JxlDecoderDestroy(decoder);
171170
free(data);
172171
return -1;
@@ -175,7 +174,7 @@ _cfImageReadJPEGXL(cf_image_t *img, FILE *fp,
175174
/* Process input until full image is decoded. */
176175
while ((status = JxlDecoderProcessInput(decoder)) != JXL_DEC_FULL_IMAGE) {
177176
if (status == JXL_DEC_ERROR) {
178-
DEBUG_printf("DEBUG: JPEG‑XL: Decoding error. Status: %d\n", status);
177+
DEBUG_printf("DEBUG: JPEG‑XL: Decoding error.\n");
179178
JxlDecoderDestroy(decoder);
180179
free(data);
181180
return -1;

0 commit comments

Comments
 (0)