about summary refs log tree commit diff stats
path: root/miasm2/os_dep/win_api_x86_32_seh.py
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2015-03-30 19:09:03 +0200
committerserpilliere <serpilliere@users.noreply.github.com>2015-03-30 19:09:03 +0200
commit65c65bd7548fd665ca2631db4b91eb136aa5962c (patch)
tree64a31b9f881907f34d2faad8d7fde82c435c0412 /miasm2/os_dep/win_api_x86_32_seh.py
parentf72d0de75c6815db54f9d54824e8948d962eee5a (diff)
parent37eb0a3d29434383a469f252975e1e3e1bd0309f (diff)
downloadmiasm-65c65bd7548fd665ca2631db4b91eb136aa5962c.tar.gz
miasm-65c65bd7548fd665ca2631db4b91eb136aa5962c.zip
Merge pull request #133 from commial/lazy-logging
Remove lazy logging pattern
Diffstat (limited to 'miasm2/os_dep/win_api_x86_32_seh.py')
-rw-r--r--miasm2/os_dep/win_api_x86_32_seh.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/miasm2/os_dep/win_api_x86_32_seh.py b/miasm2/os_dep/win_api_x86_32_seh.py
index 7b10c88c..c86c179d 100644
--- a/miasm2/os_dep/win_api_x86_32_seh.py
+++ b/miasm2/os_dep/win_api_x86_32_seh.py
@@ -861,13 +861,13 @@ def return_from_seh(myjit):
 
     # Get current context
     myjit.cpu.ESP = upck32(myjit.vm.get_mem(context_address + 0xc4, 4))
-    logging.info('-> new esp: %x' % myjit.cpu.ESP)
+    logging.info('-> new esp: %x', myjit.cpu.ESP)
 
     # Rebuild SEH
     old_seh = upck32(myjit.vm.get_mem(tib_address, 4))
     new_seh = upck32(myjit.vm.get_mem(old_seh, 4))
-    logging.info('-> old seh: %x' % old_seh)
-    logging.info('-> new seh: %x' % new_seh)
+    logging.info('-> old seh: %x', old_seh)
+    logging.info('-> new seh: %x', new_seh)
     myjit.vm.set_mem(tib_address, pck32(new_seh))
 
     dump_seh(myjit)
@@ -888,7 +888,7 @@ def return_from_seh(myjit):
         for reg_name, reg_value in regs.items():
             setattr(myjit.cpu, reg_name, reg_value)
 
-        logging.info('-> context::Eip: %x' % myjit.pc)
+        logging.info('-> context::Eip: %x', myjit.pc)
 
     elif myjit.cpu.EAX == -1:
         raise NotImplementedError("-> seh try to go to the next handler")