From a2701de3a093c2eae3e4067273de88fd8b52dba6 Mon Sep 17 00:00:00 2001 From: Blizzard Finnegan Date: Wed, 14 Jun 2023 14:36:19 -0400 Subject: [PATCH] Remove excess argument for test --- src/device.rs | 2 +- src/main.rs | 2 +- src/tty.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/device.rs b/src/device.rs index 5d9ae0f..fe1a863 100755 --- a/src/device.rs +++ b/src/device.rs @@ -446,7 +446,7 @@ impl Device{ return true; } } - pub fn test_cycle(&mut self, bp_cycles: Option, _temp_cycles: Option) -> () { + pub fn test_cycle(&mut self, bp_cycles: Option) -> () { let local_bp_cycles: u64 = bp_cycles.unwrap_or(3); if self.current_state != State::LoginPrompt { self.reboot(); } self.go_to_lifecycle_menu(); diff --git a/src/main.rs b/src/main.rs index fdc3cf3..a3e7e82 100755 --- a/src/main.rs +++ b/src/main.rs @@ -149,7 +149,7 @@ fn main(){ for i in 1..=iteration_count{ log::info!("Starting iteration {} of {} for device {}...", i,iteration_count,device.get_serial()); - device.test_cycle(None, None); + device.test_cycle(None); } })); } diff --git a/src/tty.rs b/src/tty.rs index 7925221..ceed27a 100755 --- a/src/tty.rs +++ b/src/tty.rs @@ -110,7 +110,7 @@ impl TTY{ } pub fn write_to_device(&mut self,command:Command) -> bool { - log::debug!("writing {:?} to tty {}...", command, self.tty.name().unwrap_or("unknown".to_string())); + log::trace!("writing {:?} to tty {}...", command, self.tty.name().unwrap_or("unknown".to_string())); let output = self.tty.write_all(COMMAND_MAP.get(&command).unwrap().as_bytes()).is_ok(); _ = self.tty.flush(); if command == Command::Login { std::thread::sleep(std::time::Duration::from_secs(2)); } @@ -126,7 +126,7 @@ impl TTY{ let read_line:String = String::from_utf8_lossy(read_buffer.as_slice()).to_string(); for (string,enum_value) in RESPONSES{ if read_line.contains(string){ - log::debug!("Successful read of {:?} from tty {}, which matches pattern {:?}",read_line,self.tty.name().unwrap_or("unknown shell".to_string()),enum_value); + log::trace!("Successful read of {:?} from tty {}, which matches pattern {:?}",read_line,self.tty.name().unwrap_or("unknown shell".to_string()),enum_value); self.failed_read_count = 0; if enum_value == Response::TempCount(0){ let mut lines = read_line.lines();