diff options
| author | Peter LaFosse <peter@vector35.com> | 2021-09-06 11:40:24 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2021-09-06 11:46:44 -0400 |
| commit | d0fbada21d2e23ed50db90cdd85e50fa5f9edfde (patch) | |
| tree | 519811bfd1c7c453f97d2e024a5cddf5396109b2 /python/examples/bin_info.py | |
| parent | 5a1f98b0e46d0077f777cb90e7d9d916c9186535 (diff) | |
Fix bin_info plugin's use of log
Diffstat (limited to 'python/examples/bin_info.py')
| -rw-r--r-- | python/examples/bin_info.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/examples/bin_info.py b/python/examples/bin_info.py index 850a97b8..6ba44989 100644 --- a/python/examples/bin_info.py +++ b/python/examples/bin_info.py @@ -22,7 +22,7 @@ import sys import os -import binaryninja.log as log +from binaryninja.log import log_warn, log_to_stdout from binaryninja.binaryview import BinaryViewType import binaryninja.interaction as interaction from binaryninja.plugin import PluginCommand @@ -37,11 +37,11 @@ def get_bininfo(bv): else: filename = interaction.get_open_filename_input("Filename:") if filename is None: - log.log_warn("No file specified") + log_warn("No file specified") sys.exit(1) bv = BinaryViewType.get_view_of_file(filename) - log.log_to_stdout(True) + log_to_stdout(True) contents = "## %s ##\n" % os.path.basename(bv.file.filename) contents += "- START: 0x%x\n\n" % bv.start |
