ided: Add trace logs for IDE read/write
This commit is contained in:
@@ -180,6 +180,8 @@ impl Disk for AtaDisk {
|
||||
let sectors = (chunk.len() + 511) / 512;
|
||||
assert!(sectors <= 128);
|
||||
|
||||
log::trace!("IDE read chan {} dev {} block {:#x} count {:#x}", self.chan_i, self.dev, block, sectors);
|
||||
|
||||
let mut chan = self.chan.lock().unwrap();
|
||||
|
||||
if self.dma {
|
||||
@@ -306,6 +308,8 @@ impl Disk for AtaDisk {
|
||||
let sectors = (chunk.len() + 511) / 512;
|
||||
assert!(sectors <= 128);
|
||||
|
||||
log::trace!("IDE write chan {} dev {} block {:#x} count {:#x}", self.chan_i, self.dev, block, sectors);
|
||||
|
||||
let mut chan = self.chan.lock().unwrap();
|
||||
|
||||
if self.dma {
|
||||
|
||||
Reference in New Issue
Block a user