From ce1004f48b21eb3e54c90d65cd0234b722d581a5 Mon Sep 17 00:00:00 2001 From: David Li Date: Mon, 25 Jan 2016 16:42:05 -0500 Subject: fix(Logging): set appropriate log level --- src/globals.rs | 2 +- src/main.rs | 2 -- src/system.rs | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/globals.rs b/src/globals.rs index 3a661e4..0d71762 100644 --- a/src/globals.rs +++ b/src/globals.rs @@ -114,7 +114,7 @@ impl<'a> CacheEventHandler<'a> { impl<'a> cache::EventHandler for CacheEventHandler<'a> { fn block_fetched(&self, location: cache::CacheLocation) { // TODO: need to snoop cache - info!("[memory] [cache] {}: tag {:x} fetched", self.player, location.tag); + debug!("[memory] [cache] {}: tag {:x} fetched", self.player, location.tag); self.updater.finish_tag(self.player, location.tag, location.index); } diff --git a/src/main.rs b/src/main.rs index c4cb1e1..a9af93e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -95,8 +95,6 @@ fn main() { let payload2 = generate_payload(); let memory = MemoryTracker::new(memory, payload1, payload2); - // TODO: initialize global data - let memory_ref = Rc::new(RefCell::new(memory)); let updater = globals::Updater::new( diff --git a/src/system.rs b/src/system.rs index f0f3095..158f3ff 100644 --- a/src/system.rs +++ b/src/system.rs @@ -62,14 +62,14 @@ impl<'a> SyscallHandler<'a> { } fn enable_secondary(&mut self, core_id: usize) -> Option { - debug!("[syscall] [memory] Secondary cache enabled for core {}", + info!("[syscall] [memory] Secondary cache enabled for core {}", core_id); self.caches[core_id].borrow_mut().enable_secondary(); None } fn disable_secondary(&mut self, core_id: usize) -> Option { - debug!("[syscall] [memory] Secondary cache disabled for core {}", + info!("[syscall] [memory] Secondary cache disabled for core {}", core_id); self.caches[core_id].borrow_mut().disable_secondary(); None -- cgit v1.2.3