diff options
| author | Mason Reed <mason@vector35.com> | 2025-12-17 21:23:46 -0500 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2026-01-11 10:36:01 -0800 |
| commit | 168a3fd34824adc9c6a606cd144219701f15cccf (patch) | |
| tree | 9bbac31ece5ea6ab6627998d995a77f7f7e2f8e6 /arch/msp430/src/lift.rs | |
| parent | ca91bc1933976c62d24248f0f7c35af38451ff11 (diff) | |
[Rust] Replace `log` with `tracing`
- Added more documentation
- Replaced global named logger for plugins, fixing the issue when the CU has multiple (e.g. statically linked demo)
- Simplified some misc code
This is a breaking change, but I believe there is no better time to make it, we cannot continue to use the `log` crate, it is too limited for our needs.
Diffstat (limited to 'arch/msp430/src/lift.rs')
| -rw-r--r-- | arch/msp430/src/lift.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/msp430/src/lift.rs b/arch/msp430/src/lift.rs index 3e69b5a4..480b150b 100644 --- a/arch/msp430/src/lift.rs +++ b/arch/msp430/src/lift.rs @@ -2,7 +2,7 @@ use crate::architecture::offset_to_absolute; use crate::flag::{Flag, FlagWrite}; use crate::register::Register; -use binaryninja::{architecture::FlagCondition, low_level_il::lifting::LowLevelILLabel}; +use binaryninja::{architecture::FlagCondition, low_level_il::lifting::LowLevelILLabel, tracing}; use msp430_asm::emulate::Emulated; use msp430_asm::instruction::Instruction; @@ -13,7 +13,6 @@ use msp430_asm::two_operand::TwoOperand; use binaryninja::low_level_il::expression::ValueExpr; use binaryninja::low_level_il::{LowLevelILMutableExpression, LowLevelILMutableFunction}; -use log::info; macro_rules! auto_increment { ($src:expr, $il:ident) => { @@ -550,7 +549,7 @@ pub(crate) fn lift_instruction(inst: &Instruction, addr: u64, il: &LowLevelILMut il.set_reg(size, Register::try_from(*r as u32).unwrap(), il.pop(2)) .append(); } else { - info!("pop: invalid destination operand"); + tracing::info!("pop: invalid destination operand"); } } Instruction::Ret(_) => { |
