Skip to content

Commit 14f2541

Browse files
committed
Fix debug output typos in exif
1 parent ff84598 commit 14f2541

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/exif/exif.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3171,7 +3171,7 @@ static bool exif_process_IFD_in_MAKERNOTE(image_info_type *ImageInfo, char * val
31713171
dir_start = value_ptr + maker_note->offset;
31723172

31733173
#ifdef EXIF_DEBUG
3174-
exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Process %s @x%04X + 0x%04X=%d: %s", exif_get_sectionname(section_index), (intptr_t)dir_start-(intptr_t)info->offset_base+maker_note->offset+displacement, value_len, value_len, exif_char_dump(value_ptr, value_len, (intptr_t)dir_start-(intptr_t)info->offset_base+maker_note->offset+displacement));
3174+
exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Process %s @0x%04X + 0x%04X=%d: %s", exif_get_sectionname(section_index), (intptr_t)dir_start-(intptr_t)info->offset_base+maker_note->offset+displacement, value_len, value_len, exif_char_dump(value_ptr, value_len, (intptr_t)dir_start-(intptr_t)info->offset_base+maker_note->offset+displacement));
31753175
#endif
31763176

31773177
ImageInfo->sections_found |= FOUND_MAKERNOTE;
@@ -3330,7 +3330,7 @@ static bool exif_process_IFD_TAG_impl(image_info_type *ImageInfo, char *dir_entr
33303330
#ifdef EXIF_DEBUG
33313331
dump_data = exif_dump_data(&dump_free, format, components, ImageInfo->motorola_intel, value_ptr);
33323332
exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE,
3333-
"Process tag(x%04X=%s,@x%04X + x%04X(=%d)): %s%s %s",
3333+
"Process tag(x%04X=%s,@0x%04X + x%04X(=%d)): %s%s %s",
33343334
tag, exif_get_tagname_debug(tag, tag_table), offset_val+displacement, byte_count, byte_count, (components>1)&&format!=TAG_FMT_UNDEFINED&&format!=TAG_FMT_STRING?"ARRAY OF ":"", exif_get_tagformat(format), dump_data);
33353335
if (dump_free) {
33363336
efree(dump_data);
@@ -4165,7 +4165,7 @@ static bool exif_process_IFD_in_TIFF_impl(image_info_type *ImageInfo, size_t dir
41654165
}
41664166
entry_offset = php_ifd_get32u(dir_entry+8, ImageInfo->motorola_intel);
41674167
#ifdef EXIF_DEBUG
4168-
exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Next IFD: %s @x%04X", exif_get_sectionname(sub_section_index), entry_offset);
4168+
exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Next IFD: %s @0x%04X", exif_get_sectionname(sub_section_index), entry_offset);
41694169
#endif
41704170
exif_process_IFD_in_TIFF(ImageInfo, entry_offset, sub_section_index);
41714171
if (section_index!=SECTION_THUMBNAIL && entry_tag==TAG_SUB_IFD) {

0 commit comments

Comments
 (0)