Elf64Layer: Fix typo in exception message.

This commit is contained in:
Mike Auty
2019-11-27 11:30:14 +00:00
committed by ikelos
parent b0b868d79c
commit af43e506fb
+1 -1
View File
@@ -61,7 +61,7 @@ class Elf64Layer(segmented.SegmentedLayer):
if magic != cls.MAGIC:
raise ElfFormatException(base_layer.name, "Bad magic 0x{:x} at file offset 0x{:x}".format(magic, offset))
if elf_class != cls.ELF_CLASS:
raise ElfFormatException(base_layer.name, "ELF class is not 64-bit (2): {:d}".format(elf_class, offset))
raise ElfFormatException(base_layer.name, "ELF class is not 64-bit (2): {:d}".format(elf_class))
# Virtualbox uses an ELF version of 0, which isn't to specification, but is ok to deal with
return True