From 519633b769ce9eb2c0abb00f1f117c6f66c66a6f Mon Sep 17 00:00:00 2001 From: Julien CLEMENT Date: Wed, 21 Dec 2022 20:52:00 +0100 Subject: [PATCH] add parameter to print_block because i don't know why that wasn't already the case Signed-off-by: Julien CLEMENT --- src/drivers/atapi/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/atapi/mod.rs b/src/drivers/atapi/mod.rs index 2d10d15..84dbd77 100644 --- a/src/drivers/atapi/mod.rs +++ b/src/drivers/atapi/mod.rs @@ -322,7 +322,7 @@ impl ATABus { } -pub async fn print_block() { - let block = DRIVE.lock().await.as_mut().unwrap().read_block(500).await; +pub async fn print_block(lba: u32) { + let block = DRIVE.lock().await.as_mut().unwrap().read_block(lba).await; serial_println!("{:x?}", block); } \ No newline at end of file