diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-10-17 16:48:56 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2014-10-17 16:48:56 +0200 |
| commit | 3ec550cf75e1d7cd95e8237d307934d5a28bad73 (patch) | |
| tree | a8978f121fa3478b3bf75c0b3fa3933e9a83416f | |
| parent | 13b47e5d7a7d69de8450c87376f7684f7035540a (diff) | |
| download | miasm-3ec550cf75e1d7cd95e8237d307934d5a28bad73.tar.gz miasm-3ec550cf75e1d7cd95e8237d307934d5a28bad73.zip | |
x86 jit: avoid whoami call
| -rw-r--r-- | miasm2/arch/x86/jit.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/miasm2/arch/x86/jit.py b/miasm2/arch/x86/jit.py index 556f70cb..e448e68b 100644 --- a/miasm2/arch/x86/jit.py +++ b/miasm2/arch/x86/jit.py @@ -80,7 +80,8 @@ class jitter_x86_32(jitter): args = [] for _ in xrange(n_args): args.append(self.pop_uint32_t()) - log.debug('%s %s %s' % (whoami(), hex(ret_ad), [hex(x) for x in args])) + if log.level <= logging.DEBUG: + log.debug('%s %s %s' % (whoami(), hex(ret_ad), [hex(x) for x in args])) return ret_ad, args def func_ret_stdcall(self, ret_addr, ret_value1=None, ret_value2=None): @@ -96,7 +97,7 @@ class jitter_x86_32(jitter): args = [] for i in xrange(n_args): args.append(self.get_stack_arg(i)) - if dolog: + if dolog and log.level <= logging.DEBUG: log.debug('%s %s %s' % (whoami(), hex(ret_ad), [hex(x) for x in args])) return ret_ad, args |