Skip to content

Commit c67ed46

Browse files
radarherehugovk
andauthored
Moved strings inside debug statement
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 7dcf4d8 commit c67ed46

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/PIL/TiffImagePlugin.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2202,11 +2202,15 @@ def fixIFD(self) -> None:
22022202
if tag in self.Tags:
22032203
cur_pos = self.f.tell()
22042204

2205-
tagname = TiffTags.lookup(tag).name
2206-
typname = TYPES.get(field_type, "unknown")
2207-
msg = f"fixIFD: {tagname} ({tag}) - type: {typname} ({field_type})"
2208-
msg += f"- type size: {field_size} - count: {count}"
2209-
logger.debug(msg)
2205+
logger.debug(
2206+
"fixIFD: %s (%d) - type: %s (%d) - type size: %d - count: %d",
2207+
TiffTags.lookup(tag).name,
2208+
tag,
2209+
TYPES.get(field_type, "unknown"),
2210+
field_type,
2211+
field_size,
2212+
count,
2213+
)
22102214

22112215
if is_local:
22122216
self._fixOffsets(count, field_size)

0 commit comments

Comments
 (0)