From 168a3fd34824adc9c6a606cd144219701f15cccf Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 17 Dec 2025 21:23:46 -0500 Subject: [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. --- arch/msp430/src/lift.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'arch/msp430/src/lift.rs') 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(_) => { -- cgit v1.3.1