From 841184ea22bc9acafd842f8042ed18b4772f3dc2 Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Tue, 31 Oct 2023 13:44:24 +1000 Subject: [PATCH] boards/opentitan: tests: spi_host: Add some debug prints Signed-off-by: Alistair Francis --- boards/opentitan/src/tests/spi_host.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boards/opentitan/src/tests/spi_host.rs b/boards/opentitan/src/tests/spi_host.rs index e762ced481..48fd68cf6a 100644 --- a/boards/opentitan/src/tests/spi_host.rs +++ b/boards/opentitan/src/tests/spi_host.rs @@ -43,6 +43,8 @@ impl<'a> SpiMasterClient for SpiHostCallback { tx_len: usize, rc: Result<(), ErrorCode>, ) { + debug!("Transfer Complete"); + //Transfer Complete assert_eq!(rc, Ok(())); assert_eq!(tx_len, self.tx_len.get()); @@ -59,6 +61,8 @@ impl<'a> SpiMasterClient for SpiHostCallback { } } + debug!("{} == {}", self.tx_len.get(), tx_len); + if self.tx_len.get() == tx_len { self.transfer_done.set(true); }