From 329750afb95c8fbd12b22826b8a4043e07e7703e Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Sat, 10 Mar 2018 16:02:06 -0700 Subject: [PATCH] Remove debug prints --- ahcid/src/ahci/hba.rs | 1 - rtl8168d/src/device.rs | 4 ---- 2 files changed, 5 deletions(-) diff --git a/ahcid/src/ahci/hba.rs b/ahcid/src/ahci/hba.rs index 22358e7955..6a582f7430 100644 --- a/ahcid/src/ahci/hba.rs +++ b/ahcid/src/ahci/hba.rs @@ -140,7 +140,6 @@ impl HbaPort { // Shared between identify() and identify_packet() unsafe fn identify_inner(&mut self, cmd: u8, clb: &mut Dma<[HbaCmdHeader; 32]>, ctbas: &mut [Dma; 32]) -> Option { - let dest: Dma<[u16; 256]> = Dma::new([0; 256]).unwrap(); let res = self.ata_dma(clb, ctbas, |cmdheader, cmdfis, prdt_entries, _acmd| { diff --git a/rtl8168d/src/device.rs b/rtl8168d/src/device.rs index 41425b9d2b..b49466d332 100644 --- a/rtl8168d/src/device.rs +++ b/rtl8168d/src/device.rs @@ -113,8 +113,6 @@ impl SchemeMut for Rtl8168 { let eor = rd.ctrl.read() & EOR; rd.ctrl.write(OWN | eor | data.len() as u32); - print!("{}", format!("rtl8168d: read {}: {}\n", self.receive_i, i)); - self.receive_i += 1; return Ok(i); @@ -152,8 +150,6 @@ impl SchemeMut for Rtl8168 { thread::yield_now(); } - print!("{}", format!("rtl8168d: write {}: {}\n", self.transmit_i, i)); - self.transmit_i += 1; return Ok(i);