Skip to content

Commit b73ff54

Browse files
committed
Use the python3.8 feature to simplify code
1 parent 5b86c25 commit b73ff54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiling/arch/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def disassembler(self, ql: Qiling, address: int, size: int):
3636
qd = ql.arch.create_disassembler()
3737

3838
offset, name = self.get_offset_and_name(address)
39-
log_data = f'{address:0{ql.archbit // 4}x} [{name:20s} + {offset:#08x}] {" ".join(map(lambda x: f"{x:x}", tmp)):30s}'
39+
log_data = f'{address:0{ql.archbit // 4}x} [{name:20s} + {offset:#08x}] {tmp.hex(" "):30s}'
4040
log_insn = '\n> '.join(f'{insn.mnemonic:20s} {insn.op_str}' for insn in qd.disasm(tmp, address))
4141

4242
ql.log.info(log_data + log_insn)

0 commit comments

Comments
 (0)