From a17a5d2925e7e521f31320ccefd7bf3cb61c45a7 Mon Sep 17 00:00:00 2001 From: pca006132 Date: Mon, 15 Jun 2020 16:47:47 +0800 Subject: [PATCH] sdcard: Changed some debug to trace. --- libboard_zynq/src/sdio/sd_card.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libboard_zynq/src/sdio/sd_card.rs b/libboard_zynq/src/sdio/sd_card.rs index d09c96e..7b083ba 100644 --- a/libboard_zynq/src/sdio/sd_card.rs +++ b/libboard_zynq/src/sdio/sd_card.rs @@ -112,7 +112,7 @@ impl SdCard { let mut csd: [u32; 4] = [0, 0, 0, 0]; for i in 0..=3 { csd[i] = self.sdio.regs.responses[i].read(); - debug!("CSD[{}] = {:0X}", i, csd[i]); + trace!("CSD[{}] = {:0X}", i, csd[i]); } const CSD_STRUCT_MSK: u32 = 0x00C00000; @@ -350,13 +350,13 @@ impl SdCard { } fn wait_transfer_complete(&mut self) -> Result<(), CmdTransferError> { - debug!("Wait for transfer complete"); + trace!("Wait for transfer complete"); let mut status = self.sdio.regs.interrupt_status.read(); while !status.transfer_complete() { self.sdio.check_error(&status)?; status = self.sdio.regs.interrupt_status.read(); } - debug!("Clearing transfer complete"); + trace!("Clearing transfer complete"); self.sdio .regs .interrupt_status