diff options
| author | plafosse <peter@vector35.com> | 2016-10-28 20:41:40 -0400 |
|---|---|---|
| committer | plafosse <peter@vector35.com> | 2016-10-28 20:41:40 -0400 |
| commit | 18e7e9378a4d7dff8140ed35eb47ce7993bd850b (patch) | |
| tree | c78882aa02a668637fb33124ae20f34a25e461f1 /python/examples/bin_info.py | |
| parent | 5e4cca1f1796bec109adacdb049d9e34c17656eb (diff) | |
| parent | b5eacc14097def2367b650fc4a9377d4910441eb (diff) | |
Merging with dev
Diffstat (limited to 'python/examples/bin_info.py')
| -rw-r--r-- | python/examples/bin_info.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/python/examples/bin_info.py b/python/examples/bin_info.py index ab963e4e..a472495a 100644 --- a/python/examples/bin_info.py +++ b/python/examples/bin_info.py @@ -37,20 +37,20 @@ else: bv = binaryninja.BinaryViewType[bintype].open(target) bv.update_analysis_and_wait() -print("-------- %s --------" % target) -print("START: 0x%x" % bv.start) -print("ENTRY: 0x%x" % bv.entry_point) -print("ARCH: %s" % bv.arch.name) -print("\n-------- Function List --------") +log.log_info("-------- %s --------" % target) +log.log_info("START: 0x%x" % bv.start) +log.log_info("ENTRY: 0x%x" % bv.entry_point) +log.log_info("ARCH: %s" % bv.arch.name) +log.log_info("\n-------- Function List --------") for func in bv.functions: - print(func.symbol.name) + log.log_info(func.symbol.name) -print("\n-------- First 10 strings --------") +log.log_info("\n-------- First 10 strings --------") for i in xrange(10): start = bv.strings[i].start length = bv.strings[i].length string = bv.read(start, length) - print("0x%x (%d):\t%s" % (start, length, string)) + log.log_info("0x%x (%d):\t%s" % (start, length, string)) |
