[fix] debug prints have to go to stderr

This commit is contained in:
2024-05-08 21:08:46 +02:00
parent 7ffd6a4a11
commit 1ae56389fc
3 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -49,11 +49,11 @@ impl AheadReader {
pub fn read_ahead(&mut self, userbuf: &mut [u8]) -> io::Result<ReadInfo> {
// 1st read
if self.bufsz == 0 {
println!("[reader] first read");
eprintln!("[reader] first read");
return self.first_read(userbuf);
}
println!("[reader] normal read");
eprintln!("[reader] normal read");
// normal read (not the 1st one)
self.normal_read(userbuf)
}