print st_type with the correct number of bits.
[oota-llvm.git] / test / Scripts / elf-dump
index a94079c5241b01a37efb63d91caa66e43109410e..d335e69b4373a04762dd6b4bc26607518e3aa8fe 100755 (executable)
@@ -107,7 +107,7 @@ def dumpSymtab(f, section, strtab):
         st_bind = (st_info >> 4, 4)
         st_type = (st_info & 0xf, 4)
         print "     ('st_bind', %s)" % common_dump.HexDump(st_bind[0], st_bind[1])
-        print "     ('st_type', %s)" % common_dump.HexDump(st_type[0], 32)
+        print "     ('st_type', %s)" % common_dump.HexDump(st_type[0], st_type[1])
         print "     ('st_other', %s)" % common_dump.HexDump(f.read8())
         print "     ('st_shndx', %s)" % common_dump.HexDump(f.read16())
         if f.is64Bit: