From b9798fa396317f0a3a3bcf6ccd434f27a7fa4462 Mon Sep 17 00:00:00 2001 From: W0ni <81616747+W0ni@users.noreply.github.com> Date: Sun, 25 Feb 2024 10:49:18 +0100 Subject: [PATCH] Fix display format for jitter breakpoint example --- example/jitter/memory_breakpoint.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/example/jitter/memory_breakpoint.py b/example/jitter/memory_breakpoint.py index 900b16212..291682a43 100644 --- a/example/jitter/memory_breakpoint.py +++ b/example/jitter/memory_breakpoint.py @@ -34,15 +34,15 @@ def memory_breakpoint_handler(jitter): memory_read = jitter.vm.get_memory_read() if len(memory_read) > 0: - print("Read at instruction 0x%s:" % jitter.pc) + print("Read at instruction 0x%x:" % jitter.pc) for start_address, end_address in memory_read: - print("- from %s to %s" % (hex(start_address), hex(end_address))) + print("- from 0x%x to 0x%x" % (start_address, end_address)) memory_write = jitter.vm.get_memory_write() if len(memory_write) > 0: - print("Write at instruction 0x%s:" % jitter.pc) + print("Write at instruction 0x%x:" % jitter.pc) for start_address, end_address in memory_write: - print("- from %s to %s" % (hex(start_address), hex(end_address))) + print("- from 0x%x to 0x%x" % (start_address, end_address)) # Cleanup jitter.vm.set_exception(jitter.vm.get_exception() ^ EXCEPT_BREAKPOINT_MEMORY)