From a526f9c8d0f33371a25cf50e9e1b7b8a4ebfb225 Mon Sep 17 00:00:00 2001 From: Ratan Kaliani Date: Tue, 14 Jan 2025 22:09:45 -0800 Subject: [PATCH] add --- crates/core/executor/src/syscalls/write.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/core/executor/src/syscalls/write.rs b/crates/core/executor/src/syscalls/write.rs index 6f8639f2e..181264303 100644 --- a/crates/core/executor/src/syscalls/write.rs +++ b/crates/core/executor/src/syscalls/write.rs @@ -178,7 +178,7 @@ fn start_cycle_tracker(rt: &mut Executor, name: &str) { let depth = rt.cycle_tracker.len() as u32; rt.cycle_tracker.insert(name.to_string(), (rt.state.global_clk, depth)); let padding = "│ ".repeat(depth as usize); - log::info!("{}┌╴{}", padding, name); + tracing::info!("{}┌╴{}", padding, name); } /// End tracking cycles for the given name, print out the log, and return the total number of cycles @@ -187,7 +187,7 @@ fn end_cycle_tracker(rt: &mut Executor, name: &str) -> Option { if let Some((start, depth)) = rt.cycle_tracker.remove(name) { let padding = "│ ".repeat(depth as usize); let total_cycles = rt.state.global_clk - start; - log::info!("{}└╴{} cycles", padding, num_to_comma_separated(total_cycles)); + tracing::info!("{}└╴{} cycles", padding, num_to_comma_separated(total_cycles)); return Some(total_cycles); } None