diff options
| author | serpilliere <devnull@localhost> | 2014-07-10 13:22:11 +0200 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2014-07-10 13:22:11 +0200 |
| commit | 8bcd58094840b9eafff190ad7fb5e85c258a0fcf (patch) | |
| tree | a45a74f87fcb1e5a000cde33f62e2737d3091d79 | |
| parent | 45dce4db4fe27a3e4a32ddef7caa8aa62d1a8457 (diff) | |
| download | miasm-8bcd58094840b9eafff190ad7fb5e85c258a0fcf.tar.gz miasm-8bcd58094840b9eafff190ad7fb5e85c258a0fcf.zip | |
Arch: remove debug output
| -rw-r--r-- | miasm2/arch/arm/arch.py | 7 | ||||
| -rw-r--r-- | miasm2/arch/sh4/arch.py | 3 | ||||
| -rw-r--r-- | miasm2/core/cpu.py | 3 |
3 files changed, 4 insertions, 9 deletions
diff --git a/miasm2/arch/arm/arch.py b/miasm2/arch/arm/arch.py index dbcb62de..dd0cf665 100644 --- a/miasm2/arch/arm/arch.py +++ b/miasm2/arch/arm/arch.py @@ -319,18 +319,15 @@ class instruction_arm(instruction): def fixDstOffset(self): e = self.args[0] - print 'FIX', e, self.offset, self.l if self.offset is None: raise ValueError('symbol not resolved %s' % l) if not isinstance(e, ExprInt): - log.warning('zarb dst %r' % e) + log.debug('dyn dst %r' % e) return off = e.arg - (self.offset + 4 + self.l) - print hex(off) if int(off % 4): raise ValueError('strange offset! %r' % off) self.args[0] = ExprInt32(off) - print 'final', self.args[0] def get_args_expr(self): args = [a for a in self.args] @@ -502,7 +499,7 @@ class mn_arm(cls_mn): raise ValueError('symbol not resolved %s' % l) if not isinstance(e, ExprInt): # raise ValueError('dst must be int or label') - log.warning('zarb dst %r' % e) + log.debug('dyn dst %r' % e) return # return ExprInt32(e.arg - (self.offset + self.l)) off = e.arg - (self.offset + 4 + self.l) diff --git a/miasm2/arch/sh4/arch.py b/miasm2/arch/sh4/arch.py index c2029000..d07e631d 100644 --- a/miasm2/arch/sh4/arch.py +++ b/miasm2/arch/sh4/arch.py @@ -444,11 +444,10 @@ class instruction_sh4(instruction): def fixDstOffset(self): e = self.args[0] - print 'FIX', e, self.offset, self.l if self.offset is None: raise ValueError('symbol not resolved %s' % l) if not isinstance(e, ExprInt): - log.warning('zarb dst %r' % e) + log.debug('dyn dst %r' % e) return off = e.arg - (self.offset + 4 + self.l) print hex(off) diff --git a/miasm2/core/cpu.py b/miasm2/core/cpu.py index 41e5b4f6..2d52eac0 100644 --- a/miasm2/core/cpu.py +++ b/miasm2/core/cpu.py @@ -1385,8 +1385,7 @@ class cls_mn(object): if len(out) == 0: raise ValueError('cannot fromstring %r' % s) if len(out) != 1: - log.warning('fromstring multiple args ret default') - # raise ValueError("cannot parse %r (%d cand)"%(s, len(out))) + log.debug('fromstring multiple args ret default') c = out[0] c_args = out_args[0] |