summaryrefslogtreecommitdiff
path: root/arch/msp430/src
diff options
context:
space:
mode:
Diffstat (limited to 'arch/msp430/src')
-rw-r--r--arch/msp430/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/msp430/src/lib.rs b/arch/msp430/src/lib.rs
index fd8af7a7..7654b33c 100644
--- a/arch/msp430/src/lib.rs
+++ b/arch/msp430/src/lib.rs
@@ -2,6 +2,7 @@ extern crate binaryninja;
extern crate log;
extern crate msp430_asm;
+use log::LevelFilter;
use binaryninja::{add_optional_plugin_dependency, architecture::ArchitectureExt, callingconvention, custombinaryview::{BinaryViewType, BinaryViewTypeExt}, Endianness};
mod architecture;
@@ -10,11 +11,12 @@ mod lift;
mod register;
use architecture::Msp430;
+use binaryninja::logger::Logger;
#[no_mangle]
#[allow(non_snake_case)]
pub extern "C" fn CorePluginInit() -> bool {
- binaryninja::logger::init(log::LevelFilter::Info);
+ Logger::new("MSP430").with_level(LevelFilter::Info).init();
let arch = binaryninja::architecture::register_architecture(
"msp430",
|custom_handle, handle| Msp430::new(handle, custom_handle),