diff options
author | David Li <li.davidm96@gmail.com> | 2016-01-25 16:42:05 -0500 |
---|---|---|
committer | David Li <li.davidm96@gmail.com> | 2016-01-25 16:42:05 -0500 |
commit | ce1004f48b21eb3e54c90d65cd0234b722d581a5 (patch) | |
tree | 518f047d29f0b553f7f1a8012a3998ebc46379f3 /src | |
parent | 65272ae2b094faff56b4aa74218bbfb397b8a94b (diff) |
fix(Logging): set appropriate log level
Diffstat (limited to 'src')
-rw-r--r-- | src/globals.rs | 2 | ||||
-rw-r--r-- | src/main.rs | 2 | ||||
-rw-r--r-- | 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<Trap> { - 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<Trap> { - 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 |