From d7c0193a5eaa45d7f1a7e1b1eceb2d86a115266b Mon Sep 17 00:00:00 2001 From: Alwin Berger Date: Thu, 10 Feb 2022 14:41:24 +0100 Subject: [PATCH] add debug prints --- libafl_qemu/src/clock.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libafl_qemu/src/clock.rs b/libafl_qemu/src/clock.rs index 9e05c4b959..3a9cdd803a 100644 --- a/libafl_qemu/src/clock.rs +++ b/libafl_qemu/src/clock.rs @@ -122,13 +122,7 @@ where fn post_exec(&mut self, _state: &mut S, _input: &I) -> Result<(), Error> { unsafe { self.last_runtime = emu::libafl_get_clock() }; - // if !_state.has_metadata::() { - // _state.add_metadata(QemuIcountMetadata{runtime: self.last_runtime()}); - // println!("Added Metadata"); - // } else { - // println!("Found Metadata"); - // } - // println!("Observer Clock: {}",self.last_runtime()); + #[cfg(debug_assertions)] println!("Observer Clock: {}",self.last_runtime()); Ok(()) } }