Skip to content

Commit

Permalink
Improve formatting of warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
erocarrera committed Apr 22, 2024
1 parent 4934b7d commit 9fc8197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7950,8 +7950,8 @@ def adjust_SectionAlignment(self, val, section_alignment, file_alignment):
and self.SectionAlignment_Warning is False
):
self.__warnings.append(
f"If SectionAlignment({section_alignment:x}) < 0x1000 it should "
f"equal FileAlignment({file_alignment:x})"
f"If SectionAlignment(0x{section_alignment:x}) < 0x1000 it should "
f"equal FileAlignment(0x{file_alignment:x})"
)
self.SectionAlignment_Warning = True

Expand Down

0 comments on commit 9fc8197

Please sign in to comment.